Home / grafana / grafana / CVE-2022-21702
CVE-2022-21702: is it exploited, and which versions of grafana are affected and fixed?
CVE-2022-21702 is a cross-site scripting (XSS) vulnerability in grafana. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:08 UTC). Affected: github.com/grafana/grafana from 2.0.0-beta1 before 7.5.15 and github.com/grafana/grafana from 8.0.0 before 8.3.5 (GitHub advisory GHSA-xc3p-28hw-q24g). Fixed in 7.5.15 and 8.3.5 (GitHub advisory GHSA-xc3p-28hw-q24g). Severity: Medium (6.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:51 UTC.
What is CVE-2022-21702?
Cross site scripting in Grafana proxy
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. For the data source proxy: A Grafana HTTP-based datasource configured with Server as Access Mode and a URL set, the attacker has to be in control of the HTTP server serving the URL of above datasource, and a specially crafted link pointing at the attacker controlled data source must be clicked on by an authenticated user. For the plugin proxy: A Grafana HTTP-based app plugin configured and enabled with a URL set, the attacker has to be in control of the HTTP server serving the URL of above app, and a specially crafted link pointing at the attacker controlled plugin must be clocked on by an authenticated user. For the backend plugin resource: An attacker must be able to navigate an authenticated user to a compromised plugin through a crafted link. Users are advised to update to a patched version. There are no known workarounds for this vulnerability.
From the CVE record by GitHub_M, last updated April 22, 2025, 18:22 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| grafana | grafana | >= 2.0.0-beta1, < 7.5.15 >= 8.0.0, < 8.3.5 |
As the CVE record by GitHub_M states it, last updated April 22, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/grafana/grafana | >= 2.0.0-beta1, < 7.5.15 | 7.5.15 | GHSA-xc3p-28hw-q24g |
| Go | github.com/grafana/grafana | >= 8.0.0, < 8.3.5 | 8.3.5 | GHSA-xc3p-28hw-q24g |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 14, 2024. Summary: Grafana proxy Cross-site Scripting.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| grafana | grafana | from 2.0.1 before 7.5.15 | application |
| grafana | grafana | from 8.0.0 before 8.3.5 | application |
| grafana | grafana | 2.0.0 | application |
| netapp | e-series performance analyzer | before 3.0 | application |
| fedoraproject | fedora | 34 | operating system |
| fedoraproject | fedora | 35 | operating system |
| fedoraproject | fedora | 36 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 04:26 UTC.
How severe is CVE-2022-21702?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N | GitHub_M |
| Medium 5.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N | NVD |
| Low 2.1 | CVSS 2.0 | AV:N/AC:H/Au:S/C:N/I:P/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-21702 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, April 22, 2025)
- EPSS
- 2.38% probability of exploitation activity in the next 30 days, percentile 84.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-79 Improper Neutralization of Input During Web Page Generation
Where are the vendor advisories and references?
- https://github.com/grafana/grafana/security/advisories/GHSA-xc3p-28hw-q24g x_refsource_CONFIRM
- https://github.com/grafana/grafana/commit/27726868b3d7c613844b55cd209ca93645c99b85 x_refsource_MISC
- https://grafana.com/blog/2022/02/08/grafana-7.5.15-and-8.3.5-released-with-moderate-severity-security-fixes/ x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220303-0005/ x_refsource_CONFIRM
- FEDORA-2022-83405f9d5b vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-9dd03cab55 vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-c5383675d9 vendor-advisory, x_refsource_FEDORA
When was it published, and where is the official record?
- Reserved
- November 16, 2021
- Published
- February 8, 2022, 19:40 UTC
- CVE record updated
- April 22, 2025, 18:22 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 04:26 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:51 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect grafana?
- Dec 7, 2021CVE-2021-43798 grafana: path traversal (reading or writing files outside the intended folder) exploited
- Oct 5, 2021CVE-2021-39226 grafana: authentication bypass (improper authentication) exploited
- Mar 27, 2026CVE-2026-27879 Grafana: denial of service (uncontrolled resource consumption)
- Mar 27, 2026CVE-2026-28375 Grafana: denial of service (uncontrolled resource consumption)
- Mar 27, 2026CVE-2026-27876 Grafana: code injection (remote code execution)
- Mar 27, 2026CVE-2026-27880 Grafana: out-of-bounds read
- Mar 27, 2026CVE-2026-27877 Grafana: sensitive data stored in clear text
- Feb 25, 2026CVE-2026-21725 Grafana: time-of-check time-of-use race condition
Questions about CVE-2022-21702
Is CVE-2022-21702 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 2.38% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of grafana are affected by CVE-2022-21702?
github.com/grafana/grafana from 2.0.0-beta1 before 7.5.15 and github.com/grafana/grafana from 8.0.0 before 8.3.5, per the GitHub advisory GHSA-xc3p-28hw-q24g. The tables above give every range the sources list.
Which version fixes CVE-2022-21702?
7.5.15 and 8.3.5, per the GitHub advisory GHSA-xc3p-28hw-q24g. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-21702?
Medium (6.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2022-21702?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.