{"id":"CVE-2023-0594","aliases":["BIT-grafana-2023-0594","GHSA-xw5p-hw8j-xg4q"],"url":"https://o3.security/vulnerability/CVE-2023-0594","summary":"Grafana vulnerable to Cross-site Scripting","details":"Grafana is an open-source platform for monitoring and observability. \n\nStarting with the 7.0 branch, Grafana had a stored XSS vulnerability in the trace view visualization. \n\nThe 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.\n\nAn attacker needs to have the Editor role in order to change the value of a trace view visualization to contain JavaScript. \n\nThis 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. \n\nUsers may upgrade to version 8.5.21, 9.2.13 and 9.3.8 to receive a fix. \n\n","published":"2023-03-01T15:36:43.881Z","modified":"2026-08-07T08:11:52.959638831Z","cvss":{"score":7.3,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/grafana/grafana","fixedVersion":"8.5.21"},{"ecosystem":"Go","name":"github.com/grafana/grafana","fixedVersion":"9.2.13"},{"ecosystem":"Go","name":"github.com/grafana/grafana","fixedVersion":"9.3.8"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/0xxx/CVE-2023-0594.json"},{"type":"ADVISORY","url":"https://grafana.com/security/security-advisories/cve-2023-0594/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-0594"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20230331-0007/"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T08:11:52.959638831Z"}}