# CVE-2024-54138: XSS Vulnerability in NuGetGallery's Markdown Autolinks Processing

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2024-12-06T21:56:49.040Z
- Modified: 2026-06-17T08:09:50.527Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- NuGet NuGetGallery: < 2024.12.06; before 2024.12.06
- microsoft nugetgallery: before 2024.12.06

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/NuGet/NuGetGallery/security/advisories/GHSA-x448-p234-x5p8> (vendor-advisory)
- <https://github.com/NuGet/NuGetGallery/pull/10296> (issue-tracking, patch)

## Sources

- CVE List: [CVE-2024-54138](https://www.cve.org/CVERecord?id=CVE-2024-54138), CVE Terms of Use, modified 2024-12-10
- NVD: [CVE-2024-54138](https://nvd.nist.gov/vuln/detail/CVE-2024-54138), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-54138 · Whole record: https://cve.day/CVE-2024-54138.json · Rebuilt by cve.day 2026-11-25T22:58:49.809Z
