# Potential leak of NuGet.org API key

Advisory record · `GHSA-3885-8gqc-3wpf`

- **Identifiers:** `GHSA-3885-8gqc-3wpf` · `BIT-dotnet-2022-30184` · `BIT-dotnet-sdk-2022-30184` · `CVE-2022-30184`
- **State:** Confirmed
- **Severity:** CVSS 5.5 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-200](https://cwe.mitre.org/data/definitions/200.html)
- **Tags:** [Information disclosure](https://agentprime.io/advisories/tag/info-disclosure.md)
- **Published:** 14 Jun 2022
- **Updated:** 28 Feb 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 14 Jun 2022, 21:57 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `NuGet.Commands` (NuGet): affected `>=3.5.0, <4.9.5 || >=5.0.0, <5.2.1 || >=5.3.0, <5.7.2 || >=5.8.0, <5.9.2 || >=5.10.0, <5.11.2 || >=6.0.0, <6.0.2 || >=6.1.0, <6.2.1`; fixed in `4.9.5`, `5.2.1`, `5.7.2`, `5.9.2`, `5.11.2`, `6.0.2`, `6.2.1`
- `NuGet.CommandLine` (NuGet): affected `>=3.5.0, <4.9.5 || >=5.0.0, <5.2.1 || >=5.3.0, <5.7.2 || >=5.8.0, <5.9.2 || >=5.10.0, <5.11.2 || >=6.0.0, <6.0.2 || >=6.1.0, <6.2.1`; fixed in `4.9.5`, `5.2.1`, `5.7.2`, `5.9.2`, `5.11.2`, `6.0.2`, `6.2.1`
- `NuGet.CommandLine.XPlat` (NuGet): affected `>=3.5.0, <4.9.5 || >=5.0.0, <5.2.1 || >=5.3.0, <5.7.2 || >=5.8.0, <5.9.2 || >=5.10.0, <5.11.2 || >=6.0.0, <6.0.2 || >=6.1.0, <6.2.1`; fixed in `4.9.5`, `5.2.1`, `5.7.2`, `5.9.2`, `5.11.2`, `6.0.2`, `6.2.1`

## Machine-written summary

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

> The NuGet.Commands, NuGet.CommandLine and NuGet.CommandLine.XPlat packages are affected in versions from 3.5.0 up to (but not including) 4.9.5, 5.2.1, 5.7.2, 5.9.2, 5.11.2, 6.0.2 and 6.2.1, depending on release line. Due to an incorrect comparison with a server URL, a nuget.org API key could leak, so an attacker who can get the key sent to a server they control may be able to use it. The source gives few details on the exact conditions required. Upgrade to the fixed version for your release line (for example 6.2.1 or 6.0.2); the source does not list a workaround.

Written 9 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

- 5.5 Medium, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N/E:P/RL:O/RC:C`, from CNA (microsoft)

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

## Timeline

- 31 Oct 2026, 15:22 UTC: First seen by agentprime
- 31 Oct 2026, 15:22 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-3885-8gqc-3wpf)

## Sources

- [GitHub Advisory Database: GHSA-3885-8gqc-3wpf](https://github.com/advisories/GHSA-3885-8gqc-3wpf)
- [OSV: GHSA-3885-8gqc-3wpf](https://osv.dev/vulnerability/GHSA-3885-8gqc-3wpf)
- <https://github.com/NuGet/NuGet.Client/security/advisories/GHSA-3885-8gqc-3wpf>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-30184>
- <https://github.com/NuGet/Home/issues/11883#issuecomment-1156194755>
- <https://github.com/NuGet/NuGet.Client/commit/ec6e62a645ec6b53a8784bf4571cac7786fd700b#diff-9e678e6dcc29381eb7c564f0e75ffc3ffc35458eca412c35b6404340b698d074R58-R65>
- <https://github.com/NuGet/NuGet.Client>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DMP34G53EA2DBTBLFOAQCDZRRENE2EA2>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWNH4AC3LFVX35MDRX5OBZDGD2AMH66K>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DMP34G53EA2DBTBLFOAQCDZRRENE2EA2>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XWNH4AC3LFVX35MDRX5OBZDGD2AMH66K>
- <https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-30184>
- <https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2022-30184>

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-3885-8gqc-3wpf>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-3885-8gqc-3wpf/>. Everything for agents: <https://agentprime.io/llms.txt>.
