Skip to content
OpenAdvisories
High · 7.6 Scanner template Public exploit CVE-2025-4123 BIT-grafana-2025-4123EUVD-2025-16107GHSA-q53q-gxq9-mgrjGO-2025-3704

Grafana Cross-Site-Scripting (XSS) via custom loaded frontend plugin

Published May 22, 2025 · Updated Apr 29, 2026 · Assigned by GRAFANA

Description

A cross-site scripting (XSS) vulnerability exists in Grafana caused by combining a client path traversal and open redirect. This allows attackers to redirect users to a website that hosts a frontend plugin that will execute arbitrary JavaScript. This vulnerability does not require editor permissions and if anonymous access is enabled, the XSS will work. If the Grafana Image Renderer plugin is installed, it is possible to exploit the open redirect to achieve a full read SSRF.

The default Content-Security-Policy (CSP) in Grafana will block the XSS though the `connect-src` directive.

Affected products

VendorProductAffectedFixed
Grafana Grafana 10.4.18+security-01 – < 10.4.19, 11.2.9+security-01 – < 11.2.10, 11.3.6+security-01 – < 11.3.7, 11.4.4+security-01 – < 11.4.5, 11.5.4+security-01 – < 11.5.5, 11.6.1+security-01 – < 11.6.2, 12.0.0+security-01 – < 12.0.1 10.4.19

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS grafana No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 grafana +1 10.2.6-17.el10_0 RHSA-2025:7892
RHEL 9 grafana +1 10.2.6-13.el9_6 RHSA-2025:7893
RHEL 8 grafana +1 9.2.10-23.el8_10 RHSA-2025:7894
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.4 EUS grafana +1 9.2.10-23.el9_4 RHSA-2025:8665
RHEL 9.2 E4S grafana 9.0.9-8.el9_2 RHSA-2025:8680
RHEL 9.0 E4S grafana 7.5.11-10.el9_0 RHSA-2025:8681
RHEL 8.8 TUS grafana 7.5.15-7.el8_8 RHSA-2025:8685
RHEL 8.8 E4S grafana 7.5.15-7.el8_8 RHSA-2025:8685
RHEL 8.6 TUS grafana 7.5.11-6.el8_6 RHSA-2025:8679
RHEL 8.6 E4S grafana 7.5.11-6.el8_6 RHSA-2025:8679
RHEL 8.6 AUS grafana 7.5.11-6.el8_6 RHSA-2025:8679
RHEL 8.4 AUS grafana 7.3.6-9.el8_4 RHSA-2025:8683
RHEL 8.2 AUS grafana +12 6.3.6-7.el8_2 RHSA-2025:8684

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 grafana +1 10.2.6-13.el9_6 ALSA-2025:7893
AlmaLinux 8 grafana +1 9.2.10-23.el8_10 ALSA-2025:7894

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 grafana 10.2.6-17.el10_0 RLSA-2025:7892
Rocky Linux 9 grafana 10.2.6-13.el9_6 RLSA-2025:7893
Rocky Linux 8 grafana 9.2.10-23.el8_10 RLSA-2025:7894
ReleasePackageFixed inAdvisory
SUSE Manager Server 4.3 release-notes-susemanager 4.3.15.2-150400.3.133.1 SUSE-SU-2025:01985-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250527T204717-1.1 openSUSE-SU-2025:15179-1
openSUSE Tumbleweed grafana 11.6.1+security01-1.1 openSUSE-SU-2025:15171-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 grafana +1 10.2.6-18.el10_0 ELSA-2025-7892
Oracle Linux 9 grafana +1 10.2.6-13.el9_6 ELSA-2025-7893
Oracle Linux 8 grafana +1 9.2.10-23.el8_10 ELSA-2025-7894

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

GitHub 5 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/grafana/grafana < 0.0.0-20250521183405-c7a690348df7 0.0.0-20250521183405-c7a690348df7 GHSA-q53q-gxq9-mgrj
Go github.com/grafana/grafana all versions — GO-2025-3704

Advisories 23

References