# CVE-2023-0594: Grafana vulnerable to Cross-site Scripting

- Severity: High 7.3 (CVSS:3.1, scored by GRAFANA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- 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): 0.77%, higher than 52% of CVEs (2026-11-30)
- Published: 2023-03-01T15:36:43.881Z
- Modified: 2026-09-10T16:01:21.804Z
- Also known as: GHSA-xw5p-hw8j-xg4q, BIT-GRAFANA-2023-0594
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GRAFANA

## Description

Grafana is an open-source platform for monitoring and observability. 

Starting with the 7.0 branch, Grafana had a stored XSS vulnerability in the trace view visualization. 

The stored XSS vulnerability was possible due the value of a span's attributes/resources were not properly sanitized and this will be rendered when the span's attributes/resources are expanded.

An attacker needs to have the Editor role in order to change the value of a trace view visualization to contain JavaScript. 

This means that vertical privilege escalation is possible, where a user with Editor role can change to a known password for a user having Admin role if the user with Admin role executes malicious JavaScript viewing a dashboard. 

Users may upgrade to version 8.5.21, 9.2.13 and 9.3.8 to receive a fix.

(As written by CVE List.)

## Affected

- Grafana Grafana: from 7.0.0 before 8.5.21; from 9.0.0 before 9.2.13; from 9.3.0 before 9.3.8; from 9.2.0 before 9.2.13
- Grafana Grafana Enterprise: from 7.0.0 before 8.5.21; from 9.0.0 before 9.2.13; from 9.3.0 before 9.3.8
- github.com/grafana/grafana (Go): from 7.0.0 before 8.5.21; from 9.0.0 before 9.2.13; from 9.3.0 before 9.3.8
- grafana (Bitnami): from 7.0.0 before 8.5.21; from 9.2.0 before 9.2.13; from 9.3.0 before 9.3.8

## Every score

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

## References

- <https://grafana.com/security/security-advisories/cve-2023-0594/> (advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20230331-0007/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-0594> (advisory, web)
- <https://github.com/grafana/grafana> (package)
- <https://grafana.com/security/security-advisories/cve-2023-0594> (web)

## Sources

- CVE List: [CVE-2023-0594](https://www.cve.org/CVERecord?id=CVE-2023-0594), CVE Terms of Use, modified 2026-01-28
- GitHub Advisory Database: [GHSA-xw5p-hw8j-xg4q](https://github.com/advisories/GHSA-xw5p-hw8j-xg4q), CC-BY-4.0, modified 2026-08-07
- NVD: [CVE-2023-0594](https://nvd.nist.gov/vuln/detail/CVE-2023-0594), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GRAFANA-2023-0594](https://osv.dev/vulnerability/BIT-GRAFANA-2023-0594), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2023-0594 · Whole record: https://cve.day/CVE-2023-0594.json · Rebuilt by cve.day 2026-11-25T22:58:22.225Z
