CVE-2024-47604 XSS vulnerability in NuGetGallery HTML attributes handling
An attacker can execute arbitrary JavaScript in a victim's browser via malicious HTML attributes in the NuGet Gallery web application.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-47604?
CVE-2024-47604 is a high-severity cross-site scripting vulnerability in NuGetGallery, published on 1 Oct 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2024-47604?
It affects 1 product.
Products include Microsoft Nugetgallery.
How do I fix CVE-2024-47604?
No fix has been published for CVE-2024-47604 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-47604 being exploited?
There is no known exploitation of CVE-2024-47604 in the wild and no public exploit code.
Other vulnerabilities in NuGetGallery
Sources
Also known as GHSA-hq63-27r7-2j64.