CVE-2026-39399: CWE-20: Improper Input Validation in NuGet NuGetGallery
CVE-2026-39399 is a critical vulnerability in the NuGetGallery backend job that processes . nuspec files within NuGet packages. It involves improper input validation that allows an attacker to supply a crafted nuspec file with malicious metadata. This can lead to cross package metadata injection, enabling remote code execution and arbitrary writes to blobs within the storage container. The vulnerability is exploitable via URI fragment injection using unsanitized package identifiers, allowing control over the resolved blob path and potential tampering with existing content. A patch addressing this issue has been committed (commit 0e80f87628349207cdcaf55358491f8a6f1ca276).
AI Analysis
Technical Summary
NuGetGallery, the package repository backend powering nuget.org, contains a vulnerability in its handling of .nuspec files. Due to insufficient input validation, an attacker can craft a nuspec file with malicious metadata that triggers cross package metadata injection. This injection can lead to remote code execution and arbitrary blob writes by exploiting URI fragment injection through unsanitized package identifiers. The flaw allows writes to arbitrary blobs within the storage container, not limited to package files, risking tampering with existing stored content. The vulnerability affects versions prior to commit 0e80f87628349207cdcaf55358491f8a6f1ca276, where the issue has been patched.
Potential Impact
The vulnerability enables attackers with at least limited privileges (PR:L) to perform remote code execution and arbitrary writes to blobs in the NuGetGallery storage container. This can result in tampering with existing package content and potentially compromise the integrity and security of the package repository. The CVSS score of 9.6 (critical) reflects the high impact on integrity and availability without requiring user interaction.
Mitigation Recommendations
A patch fixing this vulnerability has been committed in NuGetGallery at commit 0e80f87628349207cdcaf55358491f8a6f1ca276. Users and administrators should update to this fixed version or later to remediate the issue. Since this is not a cloud service, remediation depends on applying the patch to affected deployments. Patch status beyond the commit is not explicitly stated; verify with the vendor advisory for the latest remediation guidance.
CVE-2026-39399: CWE-20: Improper Input Validation in NuGet NuGetGallery
Description
CVE-2026-39399 is a critical vulnerability in the NuGetGallery backend job that processes . nuspec files within NuGet packages. It involves improper input validation that allows an attacker to supply a crafted nuspec file with malicious metadata. This can lead to cross package metadata injection, enabling remote code execution and arbitrary writes to blobs within the storage container. The vulnerability is exploitable via URI fragment injection using unsanitized package identifiers, allowing control over the resolved blob path and potential tampering with existing content. A patch addressing this issue has been committed (commit 0e80f87628349207cdcaf55358491f8a6f1ca276).
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
NuGetGallery, the package repository backend powering nuget.org, contains a vulnerability in its handling of .nuspec files. Due to insufficient input validation, an attacker can craft a nuspec file with malicious metadata that triggers cross package metadata injection. This injection can lead to remote code execution and arbitrary blob writes by exploiting URI fragment injection through unsanitized package identifiers. The flaw allows writes to arbitrary blobs within the storage container, not limited to package files, risking tampering with existing stored content. The vulnerability affects versions prior to commit 0e80f87628349207cdcaf55358491f8a6f1ca276, where the issue has been patched.
Potential Impact
The vulnerability enables attackers with at least limited privileges (PR:L) to perform remote code execution and arbitrary writes to blobs in the NuGetGallery storage container. This can result in tampering with existing package content and potentially compromise the integrity and security of the package repository. The CVSS score of 9.6 (critical) reflects the high impact on integrity and availability without requiring user interaction.
Mitigation Recommendations
A patch fixing this vulnerability has been committed in NuGetGallery at commit 0e80f87628349207cdcaf55358491f8a6f1ca276. Users and administrators should update to this fixed version or later to remediate the issue. Since this is not a cloud service, remediation depends on applying the patch to affected deployments. Patch status beyond the commit is not explicitly stated; verify with the vendor advisory for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-06T22:06:40.516Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69decae882d89c981f18b33e
Added to database: 4/14/2026, 11:16:56 PM
Last enriched: 4/14/2026, 11:31:49 PM
Last updated: 4/15/2026, 1:22:32 AM
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.