Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-39399: CWE-20: Improper Input Validation in NuGet NuGetGallery

0
Critical
VulnerabilityCVE-2026-39399cvecve-2026-39399cwe-20cwe-22
Published: Tue Apr 14 2026 (04/14/2026, 23:01:38 UTC)
Source: CVE Database V5
Vendor/Project: NuGet
Product: 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

AILast updated: 04/14/2026, 23:31:49 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses