What’s Vulnerable › Vulnerabilities
CVE-2024-54138: XSS Vulnerability in NuGetGallery's Markdown Autolinks Processing
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-12-06 · updated 2026-06-17
- Weakness: CWE-79
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. This vulnerability is fixed in 2024.12.06.
Affected products
- NuGetGallery: before 2024.12.06 — fixed in 2024.12.06
- Nugetgallery: before 2024.12.06 — fixed in 2024.12.06
- NuGetGallery: before 2024.12.06
How to fix
Upgrade to a fixed version: NuGetGallery 2024.12.06; Nugetgallery 2024.12.06. Check the vendor advisory for mitigations.
References
- https://github.com/NuGet/NuGetGallery/pull/10296
- https://github.com/NuGet/NuGetGallery/security/advisories/GHSA-x448-p234-x5p8
Get alerted when CVE-2024-54138 or the next vulnerability affects your stack