CVE-2022-31097
Published: 15 July 2022
Summary
CVE-2022-31097 is a high-severity Cross-site Scripting (CWE-79) vulnerability in Grafana Grafana. Its CVSS base score is 7.3 (High).
Operationally, ranked in the top 2.2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
Grafana is an open-source monitoring and observability platform affected by a stored cross-site scripting vulnerability in the Unified Alerting feature. The issue impacts versions on the 8.x and 9.x branches prior to 9.0.3, 8.5.9, 8.4.10, and 8.3.10 and is tracked as CWE-79 with a CVSS 3.1 score of 7.3.
An attacker with editor privileges can exploit the flaw to escalate to administrator rights by crafting a malicious alert that executes script when an authenticated administrator clicks a crafted link.
Official advisories and release notes for the patched versions state that upgrades to 9.0.3, 8.5.9, 8.4.10, or 8.3.10 resolve the issue, while workarounds include disabling alerting entirely or reverting to legacy alerting mode. The EPSS score has remained flat at its peak value of 0.4806 with no material post-disclosure rise.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-1819
Vulnerability details
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…
more
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.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.