CVE-2025-4123
Grafana Cross-Site-Scripting (XSS) via custom loaded frontend plugin
Reported by grafana · Published May 22, 2025
github.com/grafana/grafana is fixed in 0.0.0-20250521183405-c7a690348df7 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/grafana/grafana | Go Modules | 0.0.0-20250521183405-c7a690348df7 |
| grafana-fips-12.1 | Chainguard | 12.1.10.01-r3 |
| grafana-fips-13.1 | Chainguard | 13.1.0-r0 |
| grafana | Bitnami | 12.0.0, 11.6.1, 10.4.18 |
| grafana-fips-12.0 | Chainguard | 12.0.10-r6 |
| grafana | grafana | 12.0.1, 11.6.2, 11.6.1, 11.5.5, 11.5.4, 11.4.5, 11.4.4, 11.3.7, 11.3.6, 11.2.10, 11.2.9, 10.4.19, 10.4.18 |
| grafana | Bitnami | 12.0.0, 11.6.1, 10.4.18 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Grafana | Grafana | 10.4.18+security-01, 11.2.9+security-01, 11.3.6+security-01 |
| chainguard | grafana-fips-12.4 | * |
| chainguard | grafana-fips-12.3 | * |
| chainguard | grafana-fips-12.1 | 0 |
| chainguard | grafana-fips-13.0 | * |
| chainguard | grafana-fips-13.1 | 0 |
| github.com | grafana/grafana | 0 |
| chainguard | grafana-fips-11.6 | * |
| chainguard | grafana-fips-12.0 | 0 |
| Grafana | Grafana | 12.0.0+security-01, 10.4.18+security-01, 11.2.9+security-01 |
| chainguard | grafana-fips-12.2 | * |
Timeline
- May 22, 2025 EPSS Score (30 in total, the first dated here)
- May 22, 2025 CVE Published
- May 23, 2025 VulnCheck XDB Entry (10 in total, the first dated here)
- Jun 19, 2025 Coalition ESS Score (16 in total, the first dated here)
- Jul 21, 2025 VulnCheck KEV Exploitation (154 in total, the first dated here)
- Jul 31, 2025 PoC Published (3 in total, the first dated here)
- Mar 17, 2026 Security Advisory (13 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (10 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-4123
vulnetix vdb fixes CVE-2025-4123
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-4123/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- vendor-advisory
- mitigationrelease-notes
- https://nvd.nist.gov/vuln/detail/CVE-2025-4123 advisory
- https://github.com/advisories/GHSA-q53q-gxq9-mgrj advisory
- https://grafana.com/security/security-advisories/cve-2025-4123 url
- https://github.com/grafana/grafana/commit/c7a690348df761d41b659224cbc50a46a0c0e4cc patch
- https://pkg.go.dev/vuln/GO-2025-3702 url
- https://grafana.com/blog/2025/05/23/grafana-security-release-medium-and-high-severity-security-fixes-for-cve-2025-4123-and-cve-2025-3580 url
- https://www.exploit-db.com/exploits/52491 url
- https://github.com/grafana/grafana url