{"id":"CVE-2023-0594","aliases":["CVE-2023-0594","GHSA-xw5p-hw8j-xg4q","BIT-GRAFANA-2023-0594"],"related":[],"kind":"vulnerability","state":"published","title":"Grafana vulnerable to Cross-site Scripting","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2023-03-01T15:36:43.881Z","modified":"2026-09-10T16:01:21.804Z","severity":{"scorer":"GRAFANA","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"GRAFANA","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"7.0.0","fixed":"8.5.21","status":"affected"},{"type":"semver","introduced":"9.0.0","fixed":"9.2.13","status":"affected"},{"type":"semver","introduced":"9.3.0","fixed":"9.3.8","status":"affected"}],"vendor":"Grafana","product":"Grafana","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"7.0.0","fixed":"8.5.21","status":"affected"},{"type":"semver","introduced":"9.0.0","fixed":"9.2.13","status":"affected"},{"type":"semver","introduced":"9.3.0","fixed":"9.3.8","status":"affected"}],"vendor":"Grafana","product":"Grafana Enterprise","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"8.5.21"}],"ecosystem":"Go","package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"9.0.0","status":"affected","fixed":"9.2.13"}],"ecosystem":"Go","package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"9.3.0","status":"affected","fixed":"9.3.8"}],"ecosystem":"Go","package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"7.0.0","fixed":"8.5.21"},{"status":"affected","introduced":"9.2.0","fixed":"9.2.13"},{"status":"affected","introduced":"9.3.0","fixed":"9.3.8"}],"vendor":"grafana","product":"grafana","cpe":"cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"8.5.21"},{"type":"semver","introduced":"9.2.0","status":"affected","fixed":"9.2.13"},{"type":"semver","introduced":"9.3.0","status":"affected","fixed":"9.3.8"}],"ecosystem":"Bitnami","package":"grafana","purl":"pkg:bitnami/grafana","source":"bitnami"}],"references":[{"url":"https://grafana.com/security/security-advisories/cve-2023-0594/","tags":["advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20230331-0007/","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-0594","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/grafana/grafana","tags":["package"],"sources":["ghsa"]},{"url":"https://grafana.com/security/security-advisories/cve-2023-0594","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GRAFANA","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-01-27T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-0594","url":"https://www.cve.org/CVERecord?id=CVE-2023-0594","licence":"CVE Terms of Use","modified":"2026-01-28T04:55:36.581Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xw5p-hw8j-xg4q","url":"https://github.com/advisories/GHSA-xw5p-hw8j-xg4q","licence":"CC-BY-4.0","modified":"2026-08-07T08:12:26.748Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-0594","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-0594","licence":"Public domain","modified":"2026-06-17T05:25:53.543Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GRAFANA-2023-0594","url":"https://osv.dev/vulnerability/BIT-GRAFANA-2023-0594","licence":"Apache-2.0","modified":"2026-09-10T16:01:21.804Z"}],"updatedAt":"2026-11-25T22:58:22.225Z","epss":{"score":0.00769,"percentile":0.52029,"date":"2026-11-30T12:00:22.000Z"}}