CVE-2022-31097
Stored XSS in Grafana's Unified Alerting
Reported by github_m · Published July 15, 2022
github.com/grafana/grafana is fixed in 9.0.3, 8.5.9, 8.4.10 and 1 more (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/grafana/grafana | Go Modules | 9.0.3, 8.5.9, 8.4.10, 8.3.10 |
| grafana | Alpine | 9.0.3-r0, 8.5.9-r0 |
| grafana-fips-12.1 | Chainguard | 12.1.10.01-r3 |
| grafana-fips-13.1 | Chainguard | 13.1.0-r0 |
| grafana | dhi.docker.com | 9.0.3, 8.5.9, 8.4.10, 8.3.10 |
| grafana | grafana | 9.0.3, 8.5.9, 8.4.10, 8.3.10 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| grafana | grafana | >= 9.0.0, < 9.0.3, >= 8.5.0, < 8.5.9, >= 8.4.0, < 8.4.10 |
| alpine | grafana | 0, 0 |
| chainguard | grafana-fips-12.1 | 0 |
| chainguard | grafana-fips-12.4 | * |
| chainguard | grafana-fips-12.2 | * |
| chainguard | grafana-fips-13.1 | 0 |
| github.com | grafana/grafana | 8.5.0, 8.0.0, 8.4.0 |
| grafana | grafana | 8.0.0, 9.0.0, 8.5.0 |
| chainguard | grafana-fips-11.6 | * |
| chainguard | grafana-fips-12.3 | * |
| chainguard | grafana-fips-12.0 | 0 |
| chainguard | grafana-fips-13.0 | * |
Timeline
- Jul 14, 2022 CVE Published
- Jul 15, 2022 CVE Updated
- Jul 16, 2022 EPSS Score (30 in total, the first dated here)
- Mar 11, 2026 Security Advisory (8 in total, the first dated here)
- Mar 17, 2026 Distribution Patch (7 in total, the first dated here)
- Jun 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-31097
vulnetix vdb fixes CVE-2022-31097
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-31097/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2022-31097 advisory
- https://github.com/advisories/GHSA-vw7q-p2qg-4m5f advisory
- https://github.com/grafana/grafana url
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9 url
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3 url
- https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10 url
- https://security.netapp.com/advisory/ntap-20220901-0010 advisory