CVE-2024-37304

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

Published Jun 12, 2024 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-36565 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.
History
Type Values Removed Values Added
First Time appeared Microsoft
Microsoft nugetgallery
CPEs cpe:2.3:a:microsoft:nugetgallery:*:*:*:*:*:*:*:*
Vendors & Products Microsoft
Microsoft nugetgallery
Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 2, 2024, 3:50 AM
Reserved
Jun 5, 2024, 8:10 PM
Status
Analyzed
Published
Jun 12, 2024, 3:15 PM
Modified
Jun 17, 2026, 7:38 AM