CVE-2022-31097 | Stored XSS in Grafana's 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: 2022-07-15 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2022-31097 is rated High Risk (68.4/100): CVSS High severity, with high exploitation likelihood (EPSS 48.06%, 98th percentile). Core evidence: EPSS ranks this CVE among the most likely to be exploited in the near term. EPSS rose +20.56% over the last day, indicating growing attacker interest. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2022-31097

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-03-04 27.50% 48.06% +20.56%
2 2026-03-01 48.06% 27.50% -20.56%
3 2026-02-04 48.06%

Full EPSS history (56 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2022-31097

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.3 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
2.1 5.2 [email protected]
8.7 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
2.3 5.8 [email protected]

Weakness enumeration for CVE-2022-31097

GitHub Security Advisory for CVE-2022-31097

GHSA-vw7q-p2qg-4m5f · Severity: medium · Ecosystem: go — Grafana Stored Cross-site Scripting in Unified Alerting

OS Trackers for CVE-2022-31097

vendor priority summary link
alpine high CVE-2022-31097: 1 source package rows (grafana); 19 state rows across 7 repos (3.17-community, 3.18-community, 3.19-community, 3.20-community, 3.21-community, 3.22-community, edge-community); fixed 7, open 12. https://security.alpinelinux.org/vuln/CVE-2022-31097
redhat high https://access.redhat.com/security/cve/CVE-2022-31097
suse high CVE-2022-31097 severity important: SUSE including 11 source package names (9.5.5.3.4.156:grafana-9.5.1-150200.3.41.3, grafana, …), 23 product×package rows across 22 product lines (Container ses/7.1/ceph/grafana, HPE Helion OpenStack 8, … (22 product lines)): Fixed 18, Known Not Affected 5. https://www.suse.com/security/cve/CVE-2022-31097/
ubuntu medium CVE-2022-31097 medium priority: Ubuntu including 1 source packages (grafana), 8 status rows across 8 suites (focal, jammy, noble, oracular, plucky, questing, upstream, xenial): DNE 6, needs-triage 2. https://ubuntu.com/security/CVE-2022-31097

Affected software / configurations for CVE-2022-31097

Vendor Product Version Raw CPE
grafana grafana >= 8.0.0, < 8.3.10 cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*
grafana grafana >= 8.4.0, < 8.4.10 cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*
grafana grafana >= 8.5.0, < 8.5.9 cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*
grafana grafana >= 9.0.0, < 9.0.3 cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*
netapp e-series_performance_analyzer cpe:2.3:a:netapp:e-series_performance_analyzer:-:*:*:*:*:*:*:*

References for CVE-2022-31097

cvelogic Threat Intelligence