GHSA-g4vj-cjjj-v7hg
Defense in Depth update for NuGet Client
Blast Radius
NuGet.Packaging.NETNuGet.Packaging.NETNuGet.Packaging.NETNuGet.Packaging.NETNuGet.Packaging.NETNuGet.Packaging.NETNuGet.Packaging.NETNuGet.Packaging+16 moreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects NuGet packages — download data is not available via public APIs for these ecosystems.
Description
Impact
This update adds validation of the package ID and version during package download, in addition to the existing package signature validation.
Patches
NuGet
The following NuGet.exe, NuGet.CommandLine, NuGet.Packaging, and NuGet.Protocol versions have been patched:
| Affected versions | Patched version |
|---|---|
| >= 4.9.0, <= 4.9.6 | 4.9.7 |
| >= 5.11.0, <= 5.11.6 | 5.11.7 |
| >= 6.8.0, <= 6.8.1 | 6.8.2 |
| >= 6.11.0, <= 6.11.1 | 6.11.2 |
| >= 6.12.0, <= 6.12.4 | 6.12.5 |
| >= 6.14.0, <= 6.14.2 | 6.14.3 |
| >= 7.0.0, <= 7.0.2 | 7.0.3 |
| 7.3.0 | 7.3.1 |
.NET SDK
- .NET 8.0.126 SDK
- .NET 8.0.420 SDK
- .NET 9.0.116 SDK
- .NET 9.0.313 SDK
- .NET 10.0.106 SDK
- .NET 10.0.202 SDK
Workarounds
N/A
References
https://github.com/NuGet/NuGetGallery/security/advisories/GHSA-9r3h-v4hx-rhfr
Credit
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| .NETNuGet | NuGet.Packaging | ≥ 4.9.0&&< 4.9.7 | 4.9.7 |
| .NETNuGet | NuGet.Packaging | ≥ 5.11.0&&< 5.11.7 | 5.11.7 |
| .NETNuGet | NuGet.Packaging | ≥ 6.8.0&&< 6.8.2 | 6.8.2 |
| .NETNuGet | NuGet.Packaging | ≥ 6.11.0&&< 6.11.2 | 6.11.2 |
| .NETNuGet | NuGet.Packaging | ≥ 6.12.0&&< 6.12.5 | 6.12.5 |
| .NETNuGet | NuGet.Packaging | ≥ 6.14.0&&< 6.14.3 | 6.14.3 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for NuGet.Packaging. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.
Fix
Update NuGet.Packaging to 4.9.7 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-g4vj-cjjj-v7hg is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 pinpoints whether GHSA-g4vj-cjjj-v7hg is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.
Tailored to GHSA-g4vj-cjjj-v7hg. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-g4vj-cjjj-v7hg in your dependencies?
O3 detects GHSA-g4vj-cjjj-v7hg across NuGet dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.