# CVE-2022-31097: Stored XSS in Grafana's Unified Alerting

- Priority: **Routine**
- Reason: Not severe (CVSS 7.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-07-15 · Modified: 2026-01-28
- Aliases: UBUNTU-CVE-2022-31097, GHSA-vw7q-p2qg-4m5f, BIT-grafana-2022-31097, GO-2024-2857, 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, ALPINE-CVE-2022-31097
- Record: https://cvemate.com/vulnerability/CVE-2022-31097 · JSON: https://cvemate.com/vulnerability/CVE-2022-31097/json

## Description

```text
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.
```

## Signals

- CVSS: 8.7 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
- EPSS: 70.06%, percentile 99.389%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine grafana (Alpine Linux): ≥ 8.0.0, \< 8.5.9-r0 \| ≥ 8.0.0, \< 9.0.3-r0 \| ≥ 8.5.0, \< 8.5.9-r0 \| ≥ 9.0.0, \< 9.0.3-r0
- chainguard grafana-fips-11.6 (Chainguard): All versions (No fix recorded)
- chainguard grafana-fips-12.0 (Chainguard): \< 12.0.10-r6
- chainguard grafana-fips-12.1 (Chainguard): \< 12.1.10.01-r3
- chainguard grafana-fips-12.2 (Chainguard): All versions (No fix recorded)
- chainguard grafana-fips-12.3 (Chainguard): All versions (No fix recorded)
- chainguard grafana-fips-12.4 (Chainguard): All versions (No fix recorded)
- chainguard grafana-fips-13.0 (Chainguard): All versions (No fix recorded)
- chainguard grafana-fips-13.1 (Chainguard): \< 13.1.0-r0
- ubuntu grafana (Ubuntu): All versions (No fix recorded)
- github.com/grafana grafana (Go): ≥ 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)
- grafana 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
- netapp e-series\_performance\_analyzer: na

## References

- <https://github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5f>
- <https://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3/>
- <https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/>
- <https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9/>
- <https://security.netapp.com/advisory/ntap-20220901-0010/>
- <https://ubuntu.com/security/CVE-2022-31097>
- <https://www.cve.org/CVERecord?id=CVE-2022-31097>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31097>
- <https://github.com/grafana/grafana>
- <https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9>
- <https://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3>
- <https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10>
- <https://security.netapp.com/advisory/ntap-20220901-0010>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31097.json>
- <https://security.alpinelinux.org/vuln/CVE-2022-31097>

---

Data as of 2026-12-05T08:01:24.427Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
