CVE-2024-37304

Medium

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.

SeverityMedium
CVSS6.1
Exploit probability—
ProductMicrosoft Nugetgallery
PublishedJun 12, 2024
First seenJun 12, 2024

How to fix

Update
  • microsoft nugetgallery2024.05.28 or later

Affected products

ProductAffected versionsFixed in
microsoft nugetgalleryv < 2024.05.282024.05.28

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.