GHSA-g4vj-cjjj-v7hg Defense in Depth update for NuGet Client

Not scored Published

NuGet client lacked package ID and version validation during download, allowing potential supply chain attacks via malicious packages.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-g4vj-cjjj-v7hg?

GHSA-g4vj-cjjj-v7hg is a vulnerability in NuGet.CommandLine, published on 14 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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 versionsPatched version
>= 4.9.0, <= 4.9.64.9.7
>= 5.11.0, <= 5.11.65.11.7
>= 6.8.0, <= 6.8.16.8.2
>= 6.11.0, <= 6.11.16.11.2
>= 6.12.0, <= 6.12.46.12.5
>= 6.14.0, <= 6.14.26.14.3
>= 7.0.0, <= 7.0.27.0.3
7.3.07.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

splitline with DEVCORE

Which versions are affected by GHSA-g4vj-cjjj-v7hg?

40 open source packages ship an affected version, including NuGet.CommandLine, NuGet.Packaging and NuGet.Protocol.

PackageAffectedFixed in
NuGet.CommandLine NuGetFrom 4.9.04.9.7
NuGet.CommandLine NuGetFrom 4.9.04.9.7
NuGet.CommandLine NuGetFrom 5.11.05.11.7
NuGet.CommandLine NuGetFrom 5.11.05.11.7
NuGet.CommandLine NuGetFrom 6.11.06.11.2
NuGet.CommandLine NuGetFrom 6.11.06.11.2
34 more packages
NuGet.CommandLine NuGetFrom 6.12.06.12.5
NuGet.CommandLine NuGetFrom 6.12.06.12.5
NuGet.CommandLine NuGetFrom 6.14.06.14.3
NuGet.CommandLine NuGetFrom 6.14.06.14.3
NuGet.CommandLine NuGetFrom 6.8.06.8.2
NuGet.CommandLine NuGetFrom 6.8.06.8.2
NuGet.CommandLine NuGetFrom 7.0.07.0.3
NuGet.CommandLine NuGetFrom 7.0.07.0.3
NuGet.CommandLine NuGetFrom 7.3.07.3.1
NuGet.CommandLine NuGetFrom 7.3.07.3.1
NuGet.Packaging NuGetFrom 4.9.04.9.7
NuGet.Packaging NuGetFrom 4.9.04.9.7
NuGet.Packaging NuGetFrom 5.11.05.11.7
NuGet.Packaging NuGetFrom 5.11.05.11.7
NuGet.Packaging NuGetFrom 6.11.06.11.2
NuGet.Packaging NuGetFrom 6.11.06.11.2
NuGet.Packaging NuGetFrom 6.12.06.12.5
NuGet.Packaging NuGetFrom 6.12.06.12.5
NuGet.Packaging NuGetFrom 6.14.06.14.3
NuGet.Packaging NuGetFrom 6.14.06.14.3
NuGet.Packaging NuGetFrom 6.8.06.8.2
NuGet.Packaging NuGetFrom 6.8.06.8.2
NuGet.Packaging NuGetFrom 7.0.07.0.3
NuGet.Packaging NuGetFrom 7.0.07.0.3
NuGet.Packaging NuGetFrom 7.3.07.3.1
NuGet.Packaging NuGetFrom 7.3.07.3.1
NuGet.Protocol NuGetFrom 4.9.04.9.7
NuGet.Protocol NuGetFrom 4.9.04.9.7
NuGet.Protocol NuGetFrom 5.11.05.11.7
NuGet.Protocol NuGetFrom 5.11.05.11.7
NuGet.Protocol NuGetFrom 6.11.06.11.2
NuGet.Protocol NuGetFrom 6.11.06.11.2
NuGet.Protocol NuGetFrom 6.12.06.12.5
NuGet.Protocol NuGetFrom 6.12.06.12.5

How do I fix GHSA-g4vj-cjjj-v7hg?

Upgrade NuGet.CommandLine to a fixed version for your release line: 4.9.7, 5.11.7, 6.11.2 or 6.12.5.

Is GHSA-g4vj-cjjj-v7hg being exploited?

There is no known exploitation of GHSA-g4vj-cjjj-v7hg in the wild and no public exploit code.

Sources

Is GHSA-g4vj-cjjj-v7hg in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free