CVE-2022-31097
HIGH7.3EPSS 48.1%Stored XSS in Grafana's Unified Alerting
Published: 5/14/2024Modified: 5/20/2025
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 packages (3)
- Bitnami/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
- Go/github.com/grafana/grafana>= 9.0.0, < 9.0.3
- Go/github.com/grafana/grafanafrom 0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | HIGH7.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
References (11)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-31097
- PATCHhttps://github.com/grafana/grafana
- WEBhttps://github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5f
- WEBhttps://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9
- WEBhttps://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9/
- WEBhttps://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3
- WEBhttps://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3/
- WEBhttps://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10
- WEBhttps://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/
- WEBhttps://security.netapp.com/advisory/ntap-20220901-0010
- WEBhttps://security.netapp.com/advisory/ntap-20220901-0010/