What’s Vulnerable › Vulnerabilities
CVE-2024-47604: XSS vulnerability in NuGetGallery HTML attributes handling
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-10-01 · updated 2026-06-17
- Weakness: CWE-79
Description
NuGet Gallery is a package repository that powers nuget.org. The NuGetGallery has a security vulnerability in its handling of HTML element attributes, which allows an attacker to execute arbitrary HTML or Javascript code in a victim's browser.
Affected products
- NuGetGallery: from 2024.06.21 before 2024.09.25 — fixed in 2024.09.25
- NuGetGallery: > 2024.06.21, <= 2024.09.25
How to fix
Upgrade to a fixed version: NuGetGallery 2024.09.25. Check the vendor advisory for mitigations.
References
- https://github.com/NuGet/NuGetGallery/commit/3a18689dd0de856e03d081af999783f0e6e7ca70
- https://github.com/NuGet/NuGetGallery/pull/10193
- https://github.com/NuGet/NuGetGallery/security/advisories/GHSA-hq63-27r7-2j64
Get alerted when CVE-2024-47604 or the next vulnerability affects your stack