XSS in Microsoft Nugetgallery

CVE-2024-37304

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.

Vulnerability class: XSS (Cross-Site Scripting)

EPSS: 0.007 (47.7th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2024-37304?
CVE-2024-37304 is a medium-severity vulnerability in Microsoft Nugetgallery, classified under Cross-site Scripting. CVSS score: 6.1/10. Published 2024-06-12.
How severe is CVE-2024-37304?
Medium severity. CVSS v3 base score is 6.1 out of 10.