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.

Severity (CVSS 3.1)7.3High
Exploit odds (30 days)70.1%top 0.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20grafana9.0.3-r0ALPINE-CVE-2022-31097
Alpine:v3.21grafana9.0.3-r0ALPINE-CVE-2022-31097
Alpine:v3.22grafana9.0.3-r0ALPINE-CVE-2022-31097
Alpine:v3.23grafana9.0.3-r0ALPINE-CVE-2022-31097
Alpine:v3.24grafana9.0.3-r0ALPINE-CVE-2022-31097
Gogithub.com/grafana/grafana9.0.3GHSA-vw7q-p2qg-4m5f
Gogithub.com/grafana/grafana8.5.9GHSA-vw7q-p2qg-4m5f
Gogithub.com/grafana/grafana8.4.10GHSA-vw7q-p2qg-4m5f
Gogithub.com/grafana/grafana8.3.10GHSA-vw7q-p2qg-4m5f
Gogithub.com/grafana/grafanano fix listedGO-2024-2857

Affected products (as reported)

VendorProductVersions
grafana 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

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

References