CVE-2022-31097: grafana Cross-site Scripting
Vulnerability summary
CVE-2022-31097 is a high (CVSS 8.7) Cross-site Scripting vulnerability in grafana. EPSS estimates a 70.06% chance of exploitation in the next 30 days, higher than 99.3% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 13 · Related 14Timeline
- 15-07-2022PublishedVulnerability first disclosed.
- 28-01-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 5 sources · 2 versions- CVE.orgCNA7.3HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated8.7HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
- OSV · GoEcosystem advisory · calculated7.3HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated7.3HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:NDiffers
EPSS trend
Probability
70.06%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
+1.46 pp
From 68.60% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard8 products
- grafana-fips-11.6All versions (No fix recorded)
- grafana-fips-12.0< 12.0.10-r6
- grafana-fips-12.1< 12.1.10.01-r3
- grafana-fips-12.2All versions (No fix recorded)
- grafana-fips-12.3All versions (No fix recorded)
Github.com/grafana1 product
- 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 | All versions (No fix recorded)
Grafana1 product
- grafana≥ 8.0.0, < 8.3.10 | ≥ 8.4.0, < 8.4.10 | ≥ 8.5.0, < 8.5.9 | ≥ 9.0.0, < 9.0.3
Netapp1 product
Ubuntu1 product
- grafanaAll versions (No fix recorded)
5 vendors · 12 products
References
14 links- github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5fX Refsource CONFIRMWEBAdvisoryRelease NotesThird Party Advisory
- grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3/X Refsource MISCWEBRelease NotesVendor Advisory
- grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/X Refsource MISCWEBRelease NotesVendor Advisory
- grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9/X Refsource MISCWEBRelease NotesVendor Advisory
- github.com/grafana/grafanaPACKAGE