CVE-2022-31097 — Grafana Stored Cross-site Scripting in...
Grafana Stored Cross-site Scripting in Unified Alerting in github.com/grafana/grafana
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.59%). Schedule for your next planned update.
Does your project use an affected github.com/grafana/grafana version?
Paste your go.sum to check it for CVE-2022-31097 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Grafana Stored Cross-site Scripting in Unified Alerting in github.com/grafana/grafana.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: github.com/grafana/grafana from v8.0.0 before v8.3.10, from v8.4.0 before v8.4.10, from v8.5.0 before v8.5.9, from v9.0.0 before v9.0.3.
Advisory Timeline
- First published June 5, 2024 (904 days ago).
- Last revised June 19, 2026 — 744 days after initial publication.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/grafana/grafana Go · Affected: All versions | Range-based data available |
References
- https://github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5fADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-31097ADVISORY
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9WEB
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3WEB
- https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10WEB
- https://security.netapp.com/advisory/ntap-20220901-0010WEB
Frequently Asked Questions
- What is CVE-2022-31097?
- Grafana Stored Cross-site Scripting in Unified Alerting in github.com/grafana/grafana. This vulnerability has been assigned a severity rating of Unknown.
- How do I check if my project is affected by CVE-2022-31097?
- CVE-2022-31097 affects github.com/grafana/grafana. It has a 1.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-31097 and 200,000+ other known vulnerabilities.
Severity & Exploitability
This places it in the top quartile of EPSS-scored vulnerabilities — 75.9% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2022-39229
Grafana when using email as a username can block other users from signing in in github.com/grafana/grafana
- CVE-2022-31130
Grafana Data source and plugin proxy endpoints leaking authentication tokens to some destination plugins in github.com/grafana/grafana
- CVE-2022-31107
Grafana account takeover via OAuth vulnerability in github.com/grafana/grafana
- CVE-2022-36062
Grafana folders admin only permission privilege escalation in github.com/grafana/grafana
- CVE-2022-31123
Grafana Plugin signature bypass in github.com/grafana/grafana
- CVE-2022-39328
Grafana Race condition allowing privilege escalation in github.com/grafana/grafana
- CVE-2022-39201
Grafana Data source and plugin proxy endpoints could leak the authentication cookie to some destination plugins in github.com/grafana/grafana
- CVE-2022-39324
Grafana Spoofing originalUrl of snapshots in github.com/grafana/grafana