CVE-2022-31097Grafana XSS
Grafana Stored Cross-site Scripting in Unified Alerting
Published Jul 15, 2022 · Updated Nov 5, 2026 · Also known as ALPINE-CVE-2022-31097, BIT-grafana-2022-31097, CGA-29pg-q42h-xxvw, CGA-3xv4-f23x-mhwx, CGA-48fj-7vr7-hhv5, CGA-5c3m-wvxc-jjqf, CGA-6r2r-q7gh-9pr8, CGA-72rx-8qm7-99mp, CGA-74ff-p9vr-g886, CGA-7jx2-4rf3-wh5x, CGA-7mrh-27qv-mc8r, CGA-7q57-jj75-wx63, CGA-8c8r-9c45-259g, CGA-c55r-2mvh-m3hw, CGA-c9j5-9f59-7wp4, CGA-cjqw-rxpq-mj2r, CGA-cqc2-rq36-49h6, CGA-cvvw-5v3j-m3f2, CGA-f2cg-3p6r-p433, CGA-fjp6-jxr2-5ghm, CGA-gj5h-r6x3-hvv2, CGA-h5xw-q5w6-qfwq, CGA-hxc5-2v7h-8494, CGA-jj3w-c68r-p9h3, CGA-jmgp-9m2x-7cr8, CGA-m3qh-h7jw-4mq7, CGA-m47x-88vc-855w, CGA-m9xx-hx8m-c97p, CGA-mm84-58qg-73mf, CGA-mwv4-xgmv-944c, CGA-p7m8-5wq9-rwr6, CGA-q34j-mcwh-m2w3, CGA-r6gf-gfjf-3ppm, CGA-rpv5-w739-xf4x, CGA-v4jm-f5vv-hpj7, CGA-v6p8-m4qw-976p, CGA-vmxw-66h8-xpgg, CGA-x533-vhvw-whr5, CGA-x6g6-8v89-gj84, CGA-x9m6-c6q8-mjg2, CGA-xcpw-3236-9ph8, CGA-xjpx-6ggh-3xc4, CLEANSTART-2026-JQ51398, GHSA-vw7q-p2qg-4m5f, GO-2024-2857, MINI-345r-92j2-9982, MINI-4p8r-5wpj-mm6w, MINI-6mmr-33mm-7698, MINI-7grx-wfw9-xqw9, MINI-8r2x-h5hm-rq97, MINI-9592-9r95-q4h5, MINI-c734-256w-m8pc, MINI-c7r3-pc63-ghvx, MINI-cgm4-j72g-2w44, MINI-gjxr-878p-34qj, MINI-jgj2-wqc9-2r7x, MINI-mjrm-6m4v-pj63, MINI-r5mj-gq7x-79j3, MINI-rj4r-fpq4-h958, MINI-rvqw-m99f-r7qr, MINI-w77p-392v-6j49, MINI-x884-qrwx-q7cp, OESA-2025-1186, OESA-2025-1187, OESA-2025-1188, OESA-2025-1189, SUSE-SU-2022:3751-1, UBUNTU-CVE-2022-31097, openSUSE-SU-2024:12260-1
Key Facts
Patch immediately- CVE-2022-31097 is a medium-severity vulnerability (CVSS 6.3 v4) affecting Grafana, E-Series Performance Analyzer (Netapp), grafana-fips-11.6 (chainguard) and 22 more products.
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 70% probability of exploitation in the next 30 days.
- Fixed versions are available, including ansible 2.9.27-159000.3.9.1, ansible-doc 2.9.27-159000.3.9.1, bind 9.16.6-150000.12.65.1.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v4
6.3
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
EPSS (30-day exploit likelihood)
70%
Higher than 99.3% of all scored CVEs
Exploit maturity
None known
ATLAS score
29/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
None known
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
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.
Affected Products
440 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GrafanaGrafana | >= 8.0.0, >= 9.0.0, < 9.0.3 | 8.3.10 |
| E-Series Performance AnalyzerNetapp | See advisory | n/a |
| grafana-fips-11.6chainguard | See advisory | 0 |
| grafana-fips-12.0chainguard | See advisory | 12.0.10-r6 |
| grafana-fips-12.1chainguard | See advisory | 12.1.10.01-r3 |
Patched Releases
ansible
2.9.27-159000.3.9.1
ansible-doc
2.9.27-159000.3.9.1
bind
9.16.6-150000.12.65.1
bind-chrootenv
9.16.6-150000.12.65.1
bind-devel
9.16.6-150000.12.65.1
bind-devel-32bit
9.16.6-150000.12.65.1
bind-doc
9.16.6-150000.12.65.1
bind-utils
9.16.6-150000.12.65.1
dracut-saltboot
0.1.1661440542.6cbe0da-150000.1.38.1, 0.1.1665997480.587fa10-150000.1.41.1, 0.1.1681904360.84ef141-150000.1.50.1, 0.1.1681904360.84ef141-159000.3.30.1
firewalld-prometheus-config
0.1-159000.6.33.1
github.com/grafana/grafana
8.3.10, 8.4.10, 8.5.9, 9.0.3
golang-github-boynux-squid_exporter
1.6-1.9.1, 1.6-150000.1.9.1, 1.6-159000.4.9.1, 1.6-4.9.2
golang-github-lusitaniae-apache_exporter
0.11.0-1.13.1, 0.11.0-150000.1.12.1, 1.0.0-159000.4.12.1, 1.0.0-4.12.4
golang-github-prometheus-alertmanager
0.23.0-1.15.2, 0.26.0-4.12.4
golang-github-prometheus-node_exporter
1.3.0-1.21.1, 1.3.0-150000.3.18.1, 1.5.0-4.15.4
golang-github-prometheus-prometheus
2.45.0-159000.6.33.1, 2.45.0-4.33.3
golang-github-prometheus-promu
0.13.0-150000.3.9.1, 0.14.0-4.12.2
golang-github-QubitProducts-exporter_exporter
0.4.0-159000.4.6.1, 0.4.0-4.6.2
Grafana
8.3.10, 8.3.10-1.1, 8.3.10-1.33.2, 8.3.10-150000.1.33.1, 8.3.10-150200.3.26.1, 8.4.10, 8.5.13-1.36.2, 8.5.13-150000.1.36.3, 8.5.13-150100.3.12.1, 8.5.13-150200.3.29.5, 8.5.9, 8.5.9-r0, 9.0.3, 9.0.3-r0, 9.2.10-1.oe2203sp3, 9.2.10-1.oe2203sp4, 9.2.10-1.oe2403, 9.2.10-1.oe2403sp1, 9.5.1-1.48.1, 9.5.1-150000.1.48.5, 9.5.1-150200.3.41.3, 9.5.8-159000.4.24.1, 9.5.8-4.21.2
grafana-11.4
11.4.3-r0
grafana-fips-12.0
12.0.10-r6
grafana-fips-12.1
12.1.10.01-r3
grafana-fips-13.1
13.1.0-r0
grafana/grafana
8.3.10
kiwi-desc-saltboot
0.1.1661440542.6cbe0da-1.29.1, 0.1.1687520761.cefb248-4.15.2
Timeline
Publicly disclosed
Jul 15, 2022
Last updated
Nov 5, 2026
Weakness Type
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2022-31097
- advisorysecurity.alpinelinux.org · CVE-2022-31097
- advisoryubuntu.com · CVE-2022-31097
- advisoryRHSA-2023:3642
FAQ
Common Questions.
Grafana is an open-source platform for monitoring and observability.
Affected: Grafana versions >= 8.0.0, >= 9.0.0, < 9.0.3; E-Series Performance Analyzer (Netapp); grafana-fips-11.6 (chainguard), among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including ansible 2.9.27-159000.3.9.1, ansible-doc 2.9.27-159000.3.9.1, bind 9.16.6-150000.12.65.1.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2022-31097 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo