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)
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.971 (99.9th percentile), scored .
Very high probability of exploitation in the next 30 days — among the top 0.1% most-likely-to-be-exploited CVEs. 100th percentile — 99.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.970 · newest: 0.971 · change: +0.001
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
- primesec-dev/grafana_mythos_cve-2025-4123
- MorphyKutay/CVE-2025-4123-Exploit
- ItsNee/Grafana-CVE-2025-4123-POC
- imbas007/CVE-2025-4123-template
- kk12-30/CVE-2025-4123
- AakiTT/CVE-2025-4123
- defronixpro/Defronix-Cybersecurity-Roadmap
References
- grafana.com/security/security-advisories/cve-2025-4123/ (vendor-advisory, Vendor Advisory)
- grafana.com/blog/2025/05/23/grafana-security-release-medium-and-high-severity-s… (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?
- 27 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.