{"id":"GHSA-xw5p-hw8j-xg4q","revision":"dfb21dc731664ed0aef227965cf5254e","records":[{"revision":"dfb21dc731664ed0aef227965cf5254e","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-xw5p-hw8j-xg4q","aliases":["BIT-grafana-2023-0594","CVE-2023-0594"],"title":"Grafana vulnerable to Cross-site Scripting","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.","state":0,"publishedAt":"2023-03-01T18:30:59+00:00","modifiedAt":"2026-08-07T08:12:26.7481896+00:00","affected":[{"ecosystem":"Go","name":"github.com/grafana/grafana","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"7.0.0"},{"kind":"fixed","version":"8.5.21"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/grafana/grafana","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"9.0.0"},{"kind":"fixed","version":"9.2.13"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/grafana/grafana","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"9.3.0"},{"kind":"fixed","version":"9.3.8"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2023-0594","https://github.com/grafana/grafana","https://grafana.com/security/security-advisories/cve-2023-0594"],"sourceUrl":"https://github.com/advisories/GHSA-xw5p-hw8j-xg4q","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-xw5p-hw8j-xg4q","identifiers":["GHSA-xw5p-hw8j-xg4q","BIT-grafana-2023-0594","CVE-2023-0594"]},"retained":false,"historicalAffected":[]}],"coverage":[]}