Vulnerability · Published Jul 15, 2022 · Assigned by GitHub_M
CVE-2022-31097Stored XSS in Grafana's Unified Alerting
High 7.3
In plain English
A high-severity cross-site scripting in grafana from grafana. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 70.1% (higher than 99.4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | grafana | 9.0.3-r0 | ALPINE-CVE-2022-31097 |
| Alpine:v3.21 | grafana | 9.0.3-r0 | ALPINE-CVE-2022-31097 |
| Alpine:v3.22 | grafana | 9.0.3-r0 | ALPINE-CVE-2022-31097 |
| Alpine:v3.23 | grafana | 9.0.3-r0 | ALPINE-CVE-2022-31097 |
| Alpine:v3.24 | grafana | 9.0.3-r0 | ALPINE-CVE-2022-31097 |
| Go | github.com/grafana/grafana | 9.0.3 | GHSA-vw7q-p2qg-4m5f |
| Go | github.com/grafana/grafana | 8.5.9 | GHSA-vw7q-p2qg-4m5f |
| Go | github.com/grafana/grafana | 8.4.10 | GHSA-vw7q-p2qg-4m5f |
| Go | github.com/grafana/grafana | 8.3.10 | GHSA-vw7q-p2qg-4m5f |
| Go | github.com/grafana/grafana | no fix listed | GO-2024-2857 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
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