LiveActive security incident?Get immediate response
CVE Record

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.

HighCVSS 7.3Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Certain Grafana 8.x and 9.x versions can store unsafe content in Unified Alerting. A lower-privileged editor could use it to target an authenticated admin and potentially gain admin privileges. This matters most where Grafana has multiple users and admins routinely review alerting content.

Executive priority

Treat as high priority where Grafana is multi-user or supports critical monitoring. The risk is privilege escalation to admin, but exploitation requires prior editor access and admin interaction.

Technical view

CVE-2022-31097 is a CWE-79 stored XSS in Grafana Unified Alerting. A low-privileged editor can trigger admin interaction and potentially escalate to admin. Affected versions are before 9.0.3, 8.5.9, 8.4.10, and 8.3.10. CVSS is 7.3 high.

Likely exposure

Exposure is likely in self-managed Grafana deployments on affected 8.x or 9.x versions using Unified Alerting with editor-level users and authenticated admins.

Exploitation context

The sources describe privilege escalation from editor to admin requiring an authenticated admin to click a link. The bundle marks KEV as false, and no cited source here confirms active exploitation.

Researcher notes

Evidence supports affected branches, fixed versions, CVSS, CWE, and workaround. The provided sources do not establish active exploitation. Avoid production payload testing; validate through version, feature configuration, role exposure, and vendor-fixed release deployment.

Mitigation direction

  • Upgrade Grafana to 9.0.3, 8.5.9, 8.4.10, 8.3.10, or later supported releases.
  • If immediate upgrade is blocked, disable alerting or use legacy alerting as the stated workaround.
  • Restrict editor access until patched, especially in shared or externally administered Grafana environments.
  • Review Grafana and dependent vendor guidance for product-specific packaging or support notes.

Validation and detection

  • Inventory Grafana instances and confirm installed versions against the affected ranges.
  • Confirm whether Unified Alerting is enabled on vulnerable instances.
  • Review editor-level user access and reduce unnecessary privileges before remediation completes.
  • Check recent alerting changes and admin privilege changes for unexpected activity.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-31097 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.3 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
6Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.3CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N2.15.2Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.3High
CVSS 3.1 vector shape for CVE-2022-31097Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
grafanagrafana>= 9.0.0, < 9.0.3, >= 8.5.0, < 8.5.9, >= 8.4.0, < 8.4.10, >= 8.0.0, < 8.3.10Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-79 · source CWE mapping

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.