Vulnerability

CVE-2024-37304

mediumCVSS 3.1 6.1Published 12 Jun 2024

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Microsoft nugetgallery

Weakness type

References

  • github.com /NuGet/NuGetGallery/commit/c52b023659f4ad7b626874c1063f2b5e…
  • github.com /NuGet/NuGetGallery/pull/9836
  • github.com /NuGet/NuGetGallery/security/advisories/GHSA-gwjh-c548-f787

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning