# CVE-2025-6023: Grafana is vulnerable to XSS attacks through open redirects and path traversal

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.6
- **CVSS:** 7.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.33% (percentile 71, 2026-11-26)
- **CWE:** CWE-601, CWE-79
- **Aliases:** BIT-grafana-2025-6023, GHSA-vqph-p5vc-g644, GO-2025-3817
- **Published:** 2025-07-18T07:48:15.972Z
- **Modified:** 2026-09-10T03:50:26.298Z

## Who should check

- Projects that depend on Go package github.com/grafana/grafana (\< 1.9.2-0.20250521205822-0ba0b99665a9)
- Anyone running Grafana \>= 12.0.x, \< 12.0.2+security-01; \>= 11.6.x, \< 11.6.3+security-01; \>= 11.5.x, \< 11.5.6+security-01; \>= 11.4.x, \< 11.4.6+security-01; \>= 11.3.x, \< 11.3.8+security-01

## Description

An open redirect vulnerability has been identified in Grafana OSS that can be exploited to achieve XSS attacks. The vulnerability was introduced in Grafana v11.5.0.

The open redirect can be chained with path traversal vulnerabilities to achieve XSS.

Fixed in versions 12.0.2+security-01, 11.6.3+security-01, 11.5.6+security-01, 11.4.6+security-01 and 11.3.8+security-01

## Affected and fixed versions

- Go `github.com/grafana/grafana`: affected \< 1.9.2-0.20250521205822-0ba0b99665a9; fixed 1.9.2-0.20250521205822-0ba0b99665a9 (osv)
- Grafana: \>= 12.0.x, \< 12.0.2+security-01; \>= 11.6.x, \< 11.6.3+security-01; \>= 11.5.x, \< 11.5.6+security-01; \>= 11.4.x, \< 11.4.6+security-01; \>= 11.3.x, \< 11.3.8+security-01 (cvelist)

## Mitigation

- Upgrade github.com/grafana/grafana to 1.9.2-0.20250521205822-0ba0b99665a9 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-6023. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-6023.md
Affected: github.com/grafana/grafana < 1.9.2-0.20250521205822-0ba0b99665a9
Fixed in: 1.9.2-0.20250521205822-0ba0b99665a9

Steps:
1. Search this machine and project for github.com/grafana/grafana (Go), Grafana: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-6023 being exploited?

There is no confirmed exploitation: CVE-2025-6023 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-6023?

High: CVSS 7.6 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-6023?

github.com/grafana/grafana \< 1.9.2-0.20250521205822-0ba0b99665a9.

### Is there a fix for CVE-2025-6023?

Yes. Fixed in 1.9.2-0.20250521205822-0ba0b99665a9. Upgrade github.com/grafana/grafana to 1.9.2-0.20250521205822-0ba0b99665a9 or later.

### How do I check if I'm affected by CVE-2025-6023?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://grafana.com/security/security-advisories/cve-2025-6023/>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-6023>
- vendor: <https://github.com/advisories/GHSA-vqph-p5vc-g644>
- patch: <https://github.com/grafana/grafana/commit/0ba0b99665a946cd96676ef85ec8bc83028cb1d7>
- patch: <https://github.com/grafana/grafana/commit/40ed88fe86d347bcde5ddaed6c4a20a95d2f0d55>
- patch: <https://github.com/grafana/grafana/commit/5b00e21638f565eed46acb4d0b7c009968df4c3b>
- patch: <https://github.com/grafana/grafana/commit/b6dd2b70c655c61b111b328f1a7dcca6b3954936>
- patch: <https://github.com/grafana/grafana/commit/e0ba4b480954f8a33aa2cff3229f6bcc05777bd9>
- other: <https://grafana.com/blog/2025/07/17/grafana-security-release-medium-and-high-severity-fixes-for-cve-2025-6197-and-cve-2025-6023/>
- other: <https://github.com/grafana/grafana>
- other: <https://grafana.com/blog/2025/07/17/grafana-security-release-medium-and-high-severity-fixes-for-cve-2025-6197-and-cve-2025-6023>
- other: <https://grafana.com/security/security-advisories/cve-2025-6023>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-6023>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-vqph-p5vc-g644> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2025-3817> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-6023> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-6023>
