# CVE-2023-0507: 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): 15.5%, higher than 96% of CVEs (2026-12-02)
- Published: 2023-03-01T15:35:55.259Z
- Modified: 2026-11-03T23:49:45.697Z
- Also known as: GHSA-hjv9-hm2f-rpcj, BIT-GRAFANA-2023-0507
- 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 8.1 branch, Grafana had a stored XSS vulnerability affecting the core plugin GeoMap. 

The stored XSS vulnerability was possible due to map attributions weren't properly sanitized and allowed arbitrary JavaScript to be executed in the context of the currently authorized user of the Grafana instance. 

An attacker needs to have the Editor role in order to change a panel to include a map attribution containing 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 8.1.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 8.1.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 8.1.0 before 8.5.21; from 9.0.0 before 9.2.13; from 9.3.0 before 9.3.8
- grafana (Bitnami): from 8.1.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-0507/> (advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20230413-0001/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-0507> (advisory, web)
- <https://github.com/grafana/grafana> (package)
- <https://grafana.com/security/security-advisories/cve-2023-0507> (web)
- <https://security.netapp.com/advisory/ntap-20230413-0001> (web)

## Sources

- CVE List: [CVE-2023-0507](https://www.cve.org/CVERecord?id=CVE-2023-0507), CVE Terms of Use, modified 2026-11-03
- GitHub Advisory Database: [GHSA-hjv9-hm2f-rpcj](https://github.com/advisories/GHSA-hjv9-hm2f-rpcj), CC-BY-4.0, modified 2025-02-13
- NVD: [CVE-2023-0507](https://nvd.nist.gov/vuln/detail/CVE-2023-0507), Public domain, modified 2026-11-03
- Bitnami Vulnerability Database: [BIT-GRAFANA-2023-0507](https://osv.dev/vulnerability/BIT-GRAFANA-2023-0507), Apache-2.0, modified 2026-09-10

---

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