SecurityContext

CVE-2026-39399: NuGet Gallery - Stored XSS & Remote Code Execution

  • Cve: CVE-2026-39399
  • Name: NuGet Gallery - Stored XSS & Remote Code Execution
  • Description: NuGet Gallery is a package repository that powers nuget.org. A security vulnerability exists in the NuGetGallery backend job’s handling of .nuspec files within NuGet packages. An attacker can supply a crafted nuspec file with malicious metadata, leading to cross package metadata injection that may result in remote code execution (RCE) and/or arbitrary blob writes due to insufficient input validation. The issue is exploitable via URI fragment injection using unsanitized package identifiers, allowing an attacker to control the resolved blob path. This enables writes to arbitrary blobs within the storage container, not limited to .nupkg files, resulting in potential tampering of existing content. This issue has been patched in commit 0e80f87628349207cdcaf55358491f8a6f1ca276.
  • Impact: Attackers can execute remote code and write arbitrary blobs, potentially leading to full system compromise and data tampering.
  • Remediation: Apply the patch from commit 0e80f87628349207cdcaf55358491f8a6f1ca276 or update to the latest version.
  • Vulnerability type: stored_xss
  • Vulnerability impact: remote_code_execution, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.6
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H
  • Epss score: 0.00536
  • Epss percentile: 0.46109
  • Assignee: [email protected]
  • Published at: 2026-04-14T23:16:29Z
  • Age in days: 224
  • Modified at: 2026-07-24T21:10:00Z
  • References total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-39399
  • Nvd status: awaiting_analysis
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-20Improper Input Validation

References

UrlSourceTags
https://github.com/NuGet/NuGetGallery/commit/0e80f87628349207cdcaf55358491f8a6f1ca276nvd
https://github.com/NuGet/NuGetGallery/security/advisories/GHSA-9r3h-v4hx-rhfrnvd

Projects

RepositoryLink kindsIndexedUrl
NuGet/NuGetGallerycommit, fix, security_advisoryyes/v1/repositories/NuGet/NuGetGallery

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts