# CVE-2025-4123: Grafana Cross-Site-Scripting (XSS) via custom loaded frontend plugin

- Severity: High 7.6 (CVSS:3.1, scored by GRAFANA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 97.4%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-05-22T07:44:09.491Z
- Modified: 2026-09-10T16:01:21.810Z
- Also known as: GHSA-q53q-gxq9-mgrj, BIT-GRAFANA-2025-4123, GO-2025-3704
- Related: CGA-w8vp-454p-4x2m
- Weaknesses: CWE-79, CWE-601
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GRAFANA

## 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.

(As written by CVE List.)

## Affected

- Grafana Grafana: from 10.4.18+security-01 before 10.4.19; from 11.2.9+security-01 before 11.2.10; from 11.3.6+security-01 before 11.3.7; from 11.4.4+security-01 before 11.4.5; from 11.5.4+security-01 before 11.5.5; from 11.6.1+security-01 before 11.6.2; from 12.0.0+security-01 before 12.0.1; before 10.4.18; from 11.2.0 before 11.2.9; from 11.3.0 before 11.3.6; from 11.4.0 before 11.4.4; from 11.5.0 before 11.5.4; and 8 more
- github.com/grafana/grafana (Go): before 0.0.0-20250521183405-c7a690348df7; all versions
- grafana (Bitnami): before 10.4.18; from 11.0.0 before 11.6.1; from 12.0.0 before 12.0.0

## Every score

- GRAFANA: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L`
- GitHub: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://www.exploit-db.com/exploits/52491> (exploit, web)
- <https://grafana.com/security/security-advisories/cve-2025-4123/> (advisory, vendor-advisory)
- <https://grafana.com/blog/2025/05/23/grafana-security-release-medium-and-high-severity-security-fixes-for-cve-2025-4123-and-cve-2025-3580/> (advisory, mitigation, release-notes, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-4123> (advisory, web)
- <https://github.com/grafana/grafana/commit/c7a690348df761d41b659224cbc50a46a0c0e4cc> (fix, web)
- <https://github.com/grafana/grafana> (package)
- <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://pkg.go.dev/vuln/GO-2025-3702> (web)
- <https://github.com/advisories/GHSA-q53q-gxq9-mgrj> (advisory)

## Sources

- CVE List: [CVE-2025-4123](https://www.cve.org/CVERecord?id=CVE-2025-4123), CVE Terms of Use, modified 2026-04-29
- GitHub Advisory Database: [GHSA-q53q-gxq9-mgrj](https://github.com/advisories/GHSA-q53q-gxq9-mgrj), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3704](https://pkg.go.dev/vuln/GO-2025-3704), CC-BY-4.0, modified 2026-06-19
- NVD: [CVE-2025-4123](https://nvd.nist.gov/vuln/detail/CVE-2025-4123), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GRAFANA-2025-4123](https://osv.dev/vulnerability/BIT-GRAFANA-2025-4123), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2025-4123 · Whole record: https://cve.day/CVE-2025-4123.json · Rebuilt by cve.day 2026-11-25T22:58:58.380Z
