CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2024 · Microsoft

CVE-2024-37304
Microsoft Nugetgallery vulnerability

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

Nugetgallery. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Microsoft Nugetgallery runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Microsoft products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.