CVE-2025-4123: A cross-site scripting (XSS) vulnerability exists in Grafana caused by combining a client path traversal and open redirect.
Medium CVSS 6.1
- CVE id
- CVE-2025-4123
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Grafana Runtimes and servers |
< 10.4.18 >= 11.2.0, < 11.2.9 >= 11.3.0, < 11.3.6 >= 11.4.0, < 11.4.4 >= 11.5.0, < 11.5.4 >= 11.6.0, < 11.6.1 |
10.4.18, 11.2.9, 11.3.6, 11.4.4, 11.5.4, 11.6.1 |
How to fix it
Upgrade Grafana to the fixed release of the line you run: 10.4.18, 11.2.9, 11.3.6, 11.4.4, 11.5.4, 11.6.1.
grafana-server -v
- Upgrade Grafana (the grafana/grafana image tag or packages) to the patched release.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2025-4123 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-4123
- Web: https://grafana.com/blog/2025/05/23/grafana-security-release-medium-and-high-severity-security-fixes-for-cve-2025-4123-and-cve-2025-3580/
- Web: https://grafana.com/security/security-advisories/cve-2025-4123/
- Web: https://www.exploit-db.com/exploits/52491
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.