Cross-site scriptingin Grafana.
Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).
Grafana is an open-source platform for monitoring and observability. In affected versions an attacker could serve HTML content thru the Grafana datasource or plugin proxy and trick a user to visit this HTML page using a specially crafted link and execute a Cross-site Scripting (XSS) attack. The attacker could either compromise an existing datasource for a specific Grafana instance or either set up its own public service and instruct anyone to set it up in their Grafana instance. To be impacted, all of the following must be applicable.
- Upgrade grafana to 7.5.15, 8.3.5 or later, whichever matches your release line.
- Upgrade github.com/grafana/grafana (Go) to 7.5.15, 8.3.5 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 16 Nov 2021CVE ID reserved by GitHub_M.
- 8 Feb 2022Published in the CVE List.
- 22 Apr 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other Grafana vulnerabilities
Same weakness: Cross-site scripting
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
- grafana.com x_refsource_MISC
- security.netapp.com x_refsource_CONFIRM
- lists.fedoraproject.org vendor-advisory, x_refsource_FEDORA
- lists.fedoraproject.org vendor-advisory, x_refsource_FEDORA
- lists.fedoraproject.org vendor-advisory, x_refsource_FEDORA
Patchminder. CVE-2022-21702: Cross-site scripting in Grafana. https://patchminder.com/cve/cve-2022-21702/ (accessed 5 December 2026).