VDB

CVE-2022-31097

CVE-2022-31097 PUBLISHED CVSS 7.3 HIGH

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.

PackageEcosystemFixed in
github.com/grafana/grafanaGo Modules9.0.3, 8.5.9, 8.4.10, 8.3.10
grafanaAlpine9.0.3-r0, 8.5.9-r0
grafana-fips-12.1Chainguard12.1.10.01-r3
grafana-fips-13.1Chainguard13.1.0-r0
grafanadhi.docker.com9.0.3, 8.5.9, 8.4.10, 8.3.10
grafanagrafana9.0.3, 8.5.9, 8.4.10, 8.3.10

Risk scores

CVSS 3.1
7.3
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Affected products

VendorProductVersions
grafanagrafana>= 9.0.0, < 9.0.3, >= 8.5.0, < 8.5.9, >= 8.4.0, < 8.4.10
alpinegrafana0, 0
chainguardgrafana-fips-12.10
chainguardgrafana-fips-12.4*
chainguardgrafana-fips-12.2*
chainguardgrafana-fips-13.10
github.comgrafana/grafana8.5.0, 8.0.0, 8.4.0
grafanagrafana8.0.0, 9.0.0, 8.5.0
chainguardgrafana-fips-11.6*
chainguardgrafana-fips-12.3*
chainguardgrafana-fips-12.00
chainguardgrafana-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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›