{"cve":"CVE-2023-22462","nvd":{"published":"2023-03-02T01:15:11.727","modified":"2026-06-17T05:35:30.350","status":"Modified","description":"Grafana is an open-source platform for monitoring and observability. On 2023-01-01 during an internal audit of Grafana, a member of the security team found a stored XSS vulnerability affecting the core plugin \"Text\". The stored XSS vulnerability requires several user interactions in order to be fully exploited. The vulnerability was possible due to React's render cycle that will pass though the unsanitized HTML code, but in the next cycle the HTML is cleaned up and saved in Grafana's database. An attacker needs to have the Editor role in order to change a Text panel to include JavaScript. Another user needs to edit the same Text panel, and click on \"Markdown\" or \"HTML\" for the code to be executed. 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. This issue has been patched in versions 9.2.10 and 9.3.4.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-79"],"references":["https://github.com/grafana/grafana/commit/db83d5f398caffe35c5846cfa7727d1a2a414165","https://github.com/grafana/grafana/security/advisories/GHSA-7rqg-hjwc-6mjf","https://grafana.com/blog/2023/02/28/grafana-security-release-new-versions-with-security-fixes-for-cve-2023-0594-cve-2023-0507-and-cve-2023-22462/","https://security.netapp.com/advisory/ntap-20230413-0004/","https://github.com/grafana/grafana/commit/db83d5f398caffe35c5846cfa7727d1a2a414165"],"products":["grafana:grafana"],"source":"nvd","synced_at":"2026-10-19T21:37:41.955480748+00:00"},"epss":{"cve":"CVE-2023-22462","score":0.01562,"percentile":0.75262,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-7rqg-hjwc-6mjf","url":"https://osv.dev/vulnerability/GHSA-7rqg-hjwc-6mjf","summary":"Grafana vulnerable to Stored Cross-site Scripting in Text plugin","modified":"2026-09-10T03:49:52.753855520Z","packages":[{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":[">=9.2.0 <9.2.10"],"fixed":["9.2.10"]},{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":[">=9.3.0 <9.3.4"],"fixed":["9.3.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}