Home / grafana / grafana / CVE-2022-31097
CVE-2022-31097: is it exploited, and which versions of grafana are affected and fixed?
CVE-2022-31097 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, 12:08 UTC). Affected: github.com/grafana/grafana from 9.0.0 before 9.0.3, github.com/grafana/grafana from 8.5.0 before 8.5.9, github.com/grafana/grafana from 8.4.0 before 8.4.10 and 1 more (GitHub advisory GHSA-vw7q-p2qg-4m5f). Fixed in 9.0.3, 8.5.9, 8.4.10 and 8.3.10 (GitHub advisory GHSA-vw7q-p2qg-4m5f). Severity: High (7.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:08 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:47 UTC.
What is CVE-2022-31097?
Stored XSS in Grafana's Unified Alerting
Grafana is an open-source platform for monitoring and observability. Versions on the 8.x and 9.x branch prior to 9.0.3, 8.5.9, 8.4.10, and 8.3.10 are vulnerable to stored cross-site scripting via the Unified Alerting feature of Grafana. An attacker can exploit this vulnerability to escalate privilege from editor to admin by tricking an authenticated admin to click on a link. Versions 9.0.3, 8.5.9, 8.4.10, and 8.3.10 contain a patch. As a workaround, it is possible to disable alerting or use legacy alerting.
From the CVE record by GitHub_M, last updated January 28, 2026, 04:55 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| grafana | grafana | >= 9.0.0, < 9.0.3 >= 8.5.0, < 8.5.9 >= 8.4.0, < 8.4.10 >= 8.0.0, < 8.3.10 |
As the CVE record by GitHub_M states it, last updated January 28, 2026. 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 | >= 9.0.0, < 9.0.3 | 9.0.3 | GHSA-vw7q-p2qg-4m5f |
| Go | github.com/grafana/grafana | >= 8.5.0, < 8.5.9 | 8.5.9 | GHSA-vw7q-p2qg-4m5f |
| Go | github.com/grafana/grafana | >= 8.4.0, < 8.4.10 | 8.4.10 | GHSA-vw7q-p2qg-4m5f |
| Go | github.com/grafana/grafana | >= 8.0.0, < 8.3.10 | 8.3.10 | GHSA-vw7q-p2qg-4m5f |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 18, 2024. Summary: Grafana Stored Cross-site Scripting in Unified Alerting.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| grafana | grafana | from 8.0.0 before 8.3.10 | application |
| grafana | grafana | from 8.4.0 before 8.4.10 | application |
| grafana | grafana | from 8.5.0 before 8.5.9 | application |
| grafana | grafana | from 9.0.0 before 9.0.3 | application |
| netapp | e-series performance analyzer | all versions | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:44 UTC.
How severe is CVE-2022-31097?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N | GitHub_M |
| High 8.7 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/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-31097 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, January 27, 2026)
- EPSS
- 70.1% probability of exploitation activity in the next 30 days, percentile 99.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-vw7q-p2qg-4m5f x_refsource_CONFIRM
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3/ x_refsource_MISC
- https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/ x_refsource_MISC
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9/ x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220901-0010/ x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- May 18, 2022
- Published
- July 15, 2022, 12:10 UTC
- CVE record updated
- January 28, 2026, 04:55 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 04:44 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:47 UTC; KEV December 3, 2026, 12: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-31097
Is CVE-2022-31097 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:08 UTC. FIRST's EPSS gives it a 70.1% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of grafana are affected by CVE-2022-31097?
github.com/grafana/grafana from 9.0.0 before 9.0.3, github.com/grafana/grafana from 8.5.0 before 8.5.9, github.com/grafana/grafana from 8.4.0 before 8.4.10 and github.com/grafana/grafana from 8.0.0 before 8.3.10, per the GitHub advisory GHSA-vw7q-p2qg-4m5f. The tables above give every range the sources list.
Which version fixes CVE-2022-31097?
9.0.3, 8.5.9, 8.4.10 and 8.3.10, per the GitHub advisory GHSA-vw7q-p2qg-4m5f. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-31097?
High (7.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2022-31097?
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.