CVE-2022-31097
HIGH 8.7CVSS 3.1Grafana Stored Cross-site Scripting in Unified Alerting
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.
- Published
- 15 Jul 2022
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- BIT-grafana-2022-31097GHSA-vw7q-p2qg-4m5fGO-2024-2857
- Sources
- NVDJSONOSV GHSA-vw7q-p2qg-4m5fJSONOSV GO-2024-2857JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | grafana | grafanacpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:* |
>= 8.0.0, < 8.3.10 | 8.3.10 |
| NVD | grafana | grafanacpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:* |
>= 8.4.0, < 8.4.10 | 8.4.10 |
| NVD | grafana | grafanacpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:* |
>= 8.5.0, < 8.5.9 | 8.5.9 |
| NVD | grafana | grafanacpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:* |
>= 9.0.0, < 9.0.3 | 9.0.3 |
| NVD | netapp | e-series_performance_analyzercpe:2.3:a:netapp:e-series_performance_analyzer:-:*:*:*:*:*:*:* |
(no version) | |
| OSV | Go | github.com/grafana/grafana | >= 9.0.0, < 9.0.3 | 9.0.3 |
| OSV | Go | github.com/grafana/grafana | >= 8.5.0, < 8.5.9 | 8.5.9 |
| OSV | Go | github.com/grafana/grafana | >= 8.4.0, < 8.4.10 | 8.4.10 |
| OSV | Go | github.com/grafana/grafana | >= 8.0.0, < 8.3.10 | 8.3.10 |
| OSV | Go | github.com/grafana/grafana | all versions |
References
- https://github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5f · Release Notes, Third Party Advisory, WEB, ADVISORY
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9/ · Release Notes, Vendor Advisory, WEB
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3/ · Release Notes, Vendor Advisory, WEB
- https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/ · Release Notes, Vendor Advisory, WEB
- https://security.netapp.com/advisory/ntap-20220901-0010/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31097 · ADVISORY
- https://github.com/grafana/grafana · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 15 Jul 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Jun 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 May 2024)