# Instance config inline secret exposure in Grafana

Advisory record · `GHSA-9c4x-5hgq-q3wh`

- **Identifiers:** `GHSA-9c4x-5hgq-q3wh` · `CVE-2021-41090` · `GO-2022-0305`
- **State:** Confirmed
- **Severity:** CVSS 6.5 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-200](https://cwe.mitre.org/data/definitions/200.html) · [CWE-312](https://cwe.mitre.org/data/definitions/312.html)
- **Tags:** [Information disclosure](https://agentprime.io/advisories/tag/info-disclosure.md)
- **Published:** 8 Dec 2021
- **Updated:** 8 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 8 Dec 2021, 19:52 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `github.com/grafana/agent` (Go): affected `>=0.14.0, <0.21.2`; fixed in `0.21.2`

## Machine-written summary

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

> Grafana Agent (Go module github.com/grafana/agent) versions 0.14.0 up to but not including 0.21.2 expose some inline secrets in plaintext over its HTTP server, including at /-/config and /agent/api/v1/configs/{name}. Anyone who can reach these endpoints can read the secrets, which cover remote write, scrape, integration, Consul, ETCD and Kafka credentials. Upgrade to version 0.21.2 or later, which obfuscates these secrets and disables the endpoints by default. If upgrading is not possible, restrict network access to the agent's API, for example with firewall rules or by listening on 127.0.0.1.

Written 6 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.5 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`, from CNA (GitHub_M)

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

## Timeline

- 31 Oct 2026, 15:05 UTC: First seen by agentprime
- 31 Oct 2026, 15:05 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-9c4x-5hgq-q3wh)

## Sources

- [GitHub Advisory Database: GHSA-9c4x-5hgq-q3wh](https://github.com/advisories/GHSA-9c4x-5hgq-q3wh)
- [OSV: GHSA-9c4x-5hgq-q3wh](https://osv.dev/vulnerability/GHSA-9c4x-5hgq-q3wh)
- <https://github.com/grafana/agent/security/advisories/GHSA-9c4x-5hgq-q3wh>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41090>
- <https://github.com/grafana/agent/pull/1152>
- <https://github.com/grafana/agent/commit/a5479755e946e5c7cddb793ee9adda8f5692ba11>
- <https://github.com/grafana/agent/commit/af7fb01e31fe2d389e5f1c36b399ddc46b412b21>
- <https://github.com/grafana/agent>
- <https://github.com/grafana/agent/releases/tag/v0.20.1>
- <https://github.com/grafana/agent/releases/tag/v0.21.2>
- <https://security.netapp.com/advisory/ntap-20211229-0004>

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-9c4x-5hgq-q3wh>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-9c4x-5hgq-q3wh/>. Everything for agents: <https://agentprime.io/llms.txt>.
