{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-0594","id":"CVE-2023-0594","title":"Grafana vulnerable to Cross-site Scripting","description":"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 ","descriptionLong":"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","updated":"2026-10-28T02:30:53.327655129Z","reserved":"2023-01-31T10:37:31.334Z","status":"Modified","rejected":false,"assigner":"GRAFANA","metric":{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","rating":"high","source":"GRAFANA"},"metrics":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","rating":"high","source":"GRAFANA"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","rating":"high","source":"grafana.com"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"high","products":["Grafana","Grafana Enterprise"],"affectedProducts":[{"vendor":"Grafana","product":"Grafana","defaultStatus":"unaffected","versions":[{"lessThan":"8.5.21","status":"affected","version":"7.0.0","versionType":"semver"},{"lessThan":"9.2.13","status":"affected","version":"9.0.0","versionType":"semver"},{"lessThan":"9.3.8","status":"affected","version":"9.3.0","versionType":"semver"}],"platforms":[]},{"vendor":"Grafana","product":"Grafana Enterprise","defaultStatus":"unaffected","versions":[{"lessThan":"8.5.21","status":"affected","version":"7.0.0","versionType":"semver"},{"lessThan":"9.2.13","status":"affected","version":"9.0.0","versionType":"semver"},{"lessThan":"9.3.8","status":"affected","version":"9.3.0","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":[">=7.0.0 <8.5.21",">=9.0.0 <9.2.13",">=9.3.0 <9.3.8"],"fixed":["8.5.21","9.2.13","9.3.8"],"advisory":"GHSA-xw5p-hw8j-xg4q"}],"cwes":["CWE-79"],"aliases":["BIT-grafana-2023-0594","GHSA-xw5p-hw8j-xg4q"],"references":[{"url":"https://grafana.com/security/security-advisories/cve-2023-0594/","tags":["x_transferred","Vendor Advisory","advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20230331-0007/","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/0xxx/CVE-2023-0594.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-0594","tags":["advisory"]},{"url":"https://github.com/grafana/grafana","tags":["package"]},{"url":"https://grafana.com/security/security-advisories/cve-2023-0594","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.09216,"epssPercentile":0.95451,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-0594","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-0594","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-0594","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xw5p-hw8j-xg4q","ok":true,"note":"GHSA-xw5p-hw8j-xg4q"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-0594","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["grafana"],"critical":[],"attention":null}