CVE-2022-31097Grafana
High 8.7
Follow: this CVE · Grafana · Grafana We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 8.7
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 76
- Auth required
- Yes
- Published
- Jul 15, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Grafana.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/grafana/grafana |
≥ 9.0.0 < 9.0.3 |
9.0.3 |
go get github.com/grafana/grafana@v9.0.3 |
| Go | github.com/grafana/grafana |
≥ 8.5.0 < 8.5.9 |
8.5.9 |
go get github.com/grafana/grafana@v8.5.9 |
| Go | github.com/grafana/grafana |
≥ 8.4.0 < 8.4.10 |
8.4.10 |
go get github.com/grafana/grafana@v8.4.10 |
| Go | github.com/grafana/grafana |
≥ 8.0.0 < 8.3.10 |
8.3.10 |
go get github.com/grafana/grafana@v8.3.10 |
| Go | github.com/grafana/grafana |
all |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-vw7q-p2qg-4m5f, GO-2024-2857). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| grafana | grafana | ≥ 8.0.0 < 8.3.10 |
| grafana | grafana | ≥ 8.4.0 < 8.4.10 |
| grafana | grafana | ≥ 8.5.0 < 8.5.9 |
| grafana | grafana | ≥ 9.0.0 < 9.0.3 |
| netapp | e-series_performance_analyzer | all |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes Third Party Advisory
- grafana.com Release Notes Vendor Advisory
- grafana.com Release Notes Vendor Advisory
- grafana.com Release Notes Vendor Advisory
- security.netapp.com Third Party Advisory