{"cve":"CVE-2022-31097","nvd":{"published":"2022-07-15T12:15:08.903","modified":"2026-06-17T04:44:47.433","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7},"cwes":["CWE-79"],"references":["https://github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5f","https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-5-9/","https://grafana.com/docs/grafana/latest/release-notes/release-notes-9-0-3/","https://grafana.com/docs/grafana/next/release-notes/release-notes-8-4-10/","https://security.netapp.com/advisory/ntap-20220901-0010/"],"products":["grafana:grafana","netapp:e-series_performance_analyzer"],"source":"nvd","synced_at":"2026-10-19T21:33:44.859608815+00:00"},"epss":{"cve":"CVE-2022-31097","score":0.7006,"percentile":0.99376,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-vw7q-p2qg-4m5f","url":"https://osv.dev/vulnerability/GHSA-vw7q-p2qg-4m5f","summary":"Grafana Stored Cross-site Scripting in Unified Alerting","modified":"2026-09-10T03:50:14.388960657Z","packages":[{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":[">=9.0.0 <9.0.3"],"fixed":["9.0.3"]},{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":[">=8.5.0 <8.5.9"],"fixed":["8.5.9"]},{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":[">=8.4.0 <8.4.10"],"fixed":["8.4.10"]},{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":[">=8.0.0 <8.3.10"],"fixed":["8.3.10"]}]},{"id":"GO-2024-2857","url":"https://osv.dev/vulnerability/GO-2024-2857","summary":"Grafana Stored Cross-site Scripting in Unified Alerting in github.com/grafana/grafana","modified":"2026-06-19T18:29:26.053894985Z","packages":[{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}