CVE-2025-4123: Grafana Cross-Site-Scripting (XSS) via custom loaded frontend plugin
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.
Published May 22, 2025 · Updated May 6, 2026
Affected packages
github.com/grafana/grafana
- Ecosystem
- Go
- Affected
- < 0.0.0-20250521183405-c7a690348df7
- Fixed in
- 0.0.0-20250521183405-c7a690348df7
- Check
go list -m github.com/grafana/grafana
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
- https://nvd.nist.gov/vuln/detail/CVE-2025-4123
- https://grafana.com/security/security-advisories/cve-2025-4123
- https://github.com/grafana/grafana/commit/c7a690348df761d41b659224cbc50a46a0c0e4cc
- https://pkg.go.dev/vuln/GO-2025-3702
- https://grafana.com/blog/2025/05/23/grafana-security-release-medium-and-high-severity-security-fixes-for-cve-2025-4123-and-cve-2025-3580
- https://www.exploit-db.com/exploits/52491
- https://github.com/advisories/GHSA-q53q-gxq9-mgrj
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-10601
Grafana: Path traversal in the Tempo and Loki data source plugins
medium5.4No fixJun 22, 2026CVE-2026-42127
Grafana: Pre-authentication denial of service in the public dashboard query handler
high7.5No fixJun 22, 2026CVE-2026-42129
Grafana Loki datasource plugin's callResource handler contains a path traversal vulnerability.
high7.7No fixJun 22, 2026CVE-2026-9029
Grafana geomap panel's XYZ tile layer has a sanitize-then-interpolate ordering bug
high7.3No fixJun 22, 2026CVE-2026-33380
Grafana: SQL Expressions Read File From Disk
medium6.3May 13, 2026CVE-2026-33381
Grafana: Users can generate Service Account tokens after permissions removal
medium5.9May 13, 2026
