CVE-2024-37304

NuGetGallery's Markdown Autolinks Processing Vulnerable to Cross-site Scripting

Description

NuGet Gallery is a package repository that powers nuget.org. The NuGetGallery has a security vulnerability related to its handling of autolinks in Markdown content. While the platform properly filters out JavaScript from standard links, it does not adequately sanitize autolinks. This oversight allows attackers to exploit autolinks as a vector for Cross-Site Scripting (XSS) attacks. When a user inputs a Markdown autolink such as `<javascript:alert(1)>`, the link is rendered without proper sanitization. This means that the JavaScript code within the autolink can be executed by the browser, leading to an XSS attack. Version 2024.05.28 contains a patch for this issue.

Category

6.1
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.10%
Affected: NuGet NuGetGallery
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-37304?
CVE-2024-37304 has been scored as a medium severity vulnerability.
How to fix CVE-2024-37304?
To fix CVE-2024-37304, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-37304 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-37304 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-37304?
CVE-2024-37304 affects NuGet NuGetGallery.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.