XSS in Grafana
CVE-2025-4123
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.
Vulnerability class: XSS (Cross-Site Scripting)
EPSS: 0.970 (99.9th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.6 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L.
Affected products
- Grafana — versions 12.0.0+security-01, 11.4.4, 10.4.18
Weakness classification (CWE)
Public proof-of-concept exploits
- NightBloodZ/CVE-2025-4123
- ynsmroztas/CVE-2025-4123-Exploit-Tool-Grafana-
- punitdarji/Grafana-cve-2025-4123
- MorphyKutay/CVE-2025-4123-Exploit
- ItsNee/Grafana-CVE-2025-4123-POC
- imbas007/CVE-2025-4123-template
- AakiTT/CVE-2025-4123
- kk12-30/CVE-2025-4123
- Tirthikas/XSSplore
- defronixpro/Defronix-Cybersecurity-Roadmap
References
- security@grafana.com (vendor-advisory, Vendor Advisory)
- security@grafana.com (release-notes, mitigation, Vendor Advisory)
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2025-4123?
- CVE-2025-4123 is a high-severity vulnerability in Grafana, classified under Cross-site Scripting. CVSS score: 7.6/10. Published 2025-05-22.
- How severe is CVE-2025-4123?
- High severity. CVSS v3 base score is 7.6 out of 10.
- Is CVE-2025-4123 known to be exploited?
- 26 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.