patchminder
Proof of concept · CISA assessment CVE-2022-21702

Cross-site scriptingin Grafana.

Published 8 Feb 2022 · Updated 22 Apr 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).

Severity
Medium 6.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 2.4% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 7.5.15, 8.3.5
In plain words

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.

What to do now
  • 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.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
grafana
2.0.0-beta1 to before 7.5.15
7.5.15
CVE record
grafana
8.0.0 to before 8.3.5
8.3.5
CVE record
github.com/grafana/grafana (Go)
2.0.0-beta1 to before 7.5.15
7.5.15
GitHub advisory
github.com/grafana/grafana (Go)
8.0.0 to before 8.3.5
8.3.5
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 16 Nov 2021
    CVE ID reserved by GitHub_M.
  2. 8 Feb 2022
    Published in the CVE List.
  3. 22 Apr 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

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.

Related

Other Grafana vulnerabilities

Same weakness: Cross-site scripting

All CWE-79 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-21702: Cross-site scripting in Grafana. https://patchminder.com/cve/cve-2022-21702/ (accessed 5 December 2026).