Critical RCE Flaw Hits NuGet Gallery Backend
The National Vulnerability Database (NVD) has issued an advisory for CVE-2026-39399, a critical vulnerability found in NuGet Gallery, the package repository powering nuget.org. This flaw resides within the backend job’s processing of .nuspec files inside NuGet packages. An attacker can craft a malicious .nuspec file, injecting nefarious metadata that could lead to cross-package metadata injection.
This injection isn’t just a nuisance; it’s a gateway to potential remote code execution (RCE) and/or arbitrary blob writes. The root cause? Insufficient input validation, pure and simple. The NVD highlights that the issue is exploitable via URI fragment injection, specifically by using unsanitized package identifiers. This allows an attacker to manipulate the resolved blob path, enabling writes to arbitrary blobs within the storage container—not just .nupkg files. The implications are severe, including potential tampering of existing content. A patch has been committed, identified by 0e80f87628349207cdcaf55358491f8a6f1ca276, so it’s time to get those updates in.
Related ATT&CK Techniques
🛡️ Detection Rules
6 rules · 5 SIEM formats6 auto-generated detection rules for this incident, mapped to MITRE ATT&CK. Available in Sigma, Splunk SPL, Sentinel KQL, Elastic Lucene, and QRadar AQL.
Web Application Exploitation Attempt — CVE-2026-39399
Get this rule in your SIEM's native format — copy, paste, detect. No manual conversion.
6 Sigma rules mapped to the ATT&CK techniques from this breach — pick your SIEM and get a ready-to-paste query.
Get Detection Rules →Indicators of Compromise
| ID | Type | Indicator |
|---|---|---|
| CVE-2026-39399 | RCE | NuGet Gallery backend job handling of .nuspec files |
| CVE-2026-39399 | Code Injection | Crafted .nuspec file with malicious metadata leading to cross package metadata injection |
| CVE-2026-39399 | Arbitrary File Write | URI fragment injection using unsanitized package identifiers allowing control of resolved blob path |
| CVE-2026-39399 | Input Validation | Insufficient input validation in NuGetGallery backend job |