# Grafana Stored Cross-site Scripting in Unified Alerting

Advisory record · `GHSA-vw7q-p2qg-4m5f`

- **Identifiers:** `GHSA-vw7q-p2qg-4m5f` · `BIT-grafana-2022-31097` · `CVE-2022-31097` · `GO-2024-2857`
- **State:** Confirmed
- **Severity:** CVSS 7.3 High
- **Critical:** Yes: CVSS 7+ and EPSS
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 14 May 2024
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 14 May 2024, 22:15 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 7.3 (7.0 or more) and EPSS 0.70 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `github.com/grafana/grafana` (Go): affected `>=9.0.0, <9.0.3 || >=8.5.0, <8.5.9 || >=8.4.0, <8.4.10 || >=8.0.0, <8.3.10`; fixed in `9.0.3`, `8.5.9`, `8.4.10`, `8.3.10`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Grafana versions from 8.0.0 up to 8.3.10, 8.4.0 up to 8.4.10, 8.5.0 up to 8.5.9, and 9.0.0 up to 9.0.3 are affected by a stored cross-site scripting flaw in Unified Alerting. An attacker who can get an authenticated admin to click a crafted link could use it to escalate from Editor to Admin. Upgrade to Grafana 8.3.10, 8.4.10, 8.5.9, 9.0.3 or later; as a workaround, alerting can be disabled or legacy alerting used instead.

Written 2 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.3 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.70, the 99th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:15 UTC: First seen by agentprime
- 31 Oct 2026, 14:15 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-vw7q-p2qg-4m5f)

## Sources

- [GitHub Advisory Database: GHSA-vw7q-p2qg-4m5f](https://github.com/advisories/GHSA-vw7q-p2qg-4m5f)
- [OSV: GHSA-vw7q-p2qg-4m5f](https://osv.dev/vulnerability/GHSA-vw7q-p2qg-4m5f)
- <https://github.com/grafana/grafana/security/advisories/GHSA-vw7q-p2qg-4m5f>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31097>
- <https://github.com/grafana/grafana>
- <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>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-vw7q-p2qg-4m5f>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-vw7q-p2qg-4m5f/>. Everything for agents: <https://agentprime.io/llms.txt>.
