# Grafana Cross Site Request Forgery (CSRF)

Advisory record · `GHSA-cmf4-h3xc-jw8w`

- **Identifiers:** `GHSA-cmf4-h3xc-jw8w` · `BIT-grafana-2022-21703` · `CVE-2022-21703`
- **State:** Confirmed
- **Severity:** CVSS 6.3 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-352](https://cwe.mitre.org/data/definitions/352.html)
- **Tags:** [Cross-site request forgery (CSRF)](https://agentprime.io/advisories/tag/csrf.md)
- **Published:** 1 Feb 2024
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 1 Feb 2024, 00:16 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `github.com/grafana/grafana/pkg/web` (Go): affected `>=3.0-beta1, <7.5.15 || >=8.0.0, <8.3.5`; fixed in `7.5.15`, `8.3.5`

## Machine-written summary

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

> Grafana versions from 3.0-beta1 up to 7.5.15 (excluding that release) and from 8.0.0 up to 8.3.5 (excluding that release) are affected by a cross-site request forgery flaw, CVE-2022-21703. An anonymous attacker who lures an authenticated Editor or Admin into a cross-origin request can escalate privileges, such as by getting invited as a high-privilege user. Upgrade to Grafana 7.5.15 or 8.3.5. If running behind a reverse proxy, pass the original Host and Origin headers to Grafana.

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

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

- **CISA KEV:** Not listed.
- **EPSS:** 0.023, the 83rd percentile, on 17 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-cmf4-h3xc-jw8w)

## Sources

- [GitHub Advisory Database: GHSA-cmf4-h3xc-jw8w](https://github.com/advisories/GHSA-cmf4-h3xc-jw8w)
- [OSV: GHSA-cmf4-h3xc-jw8w](https://osv.dev/vulnerability/GHSA-cmf4-h3xc-jw8w)
- <https://github.com/grafana/grafana/security/advisories/GHSA-cmf4-h3xc-jw8w>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21703>
- <https://github.com/grafana/grafana/pull/45083>
- <https://grafana.com/blog/2022/02/08/grafana-7.5.15-and-8.3.5-released-with-moderate-severity-security-fixes>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ>
- <https://security.netapp.com/advisory/ntap-20220303-0005>

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-cmf4-h3xc-jw8w>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-cmf4-h3xc-jw8w/>. Everything for agents: <https://agentprime.io/llms.txt>.
