Cross Package Metadata Injection in NuGet Gallery by Microsoft
CVE-2026-39399
9.6CRITICAL
What is CVE-2026-39399?
A security flaw in the backend of NuGet Gallery allows attackers to exploit .nuspec files in NuGet packages. By submitting a specially crafted .nuspec file containing malicious metadata, an attacker can carry out cross package metadata injection. This vulnerability leads to potential remote code execution and arbitrary blob writes, stemming from inadequate input validation. The exploit leverages URI fragment injection through unsanitized package identifiers, enabling control over blob paths within the storage container. This vulnerability can result in the tampering of existing content beyond just .nupkg files. The issue has been addressed in recent patches.
Affected Version(s)
NuGetGallery < 0e80f87628349207cdcaf55358491f8a6f1ca276
