# CVE-2024-37304: NuGetGallery's Markdown Autolinks Processing Vulnerable to Cross-site Scripting

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A: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.65%, higher than 52% of CVEs (2026-12-01)
- Published: 2024-06-12T14:27:40.184Z
- Modified: 2026-06-17T07:38:06.380Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, 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. 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.

(As written by CVE List.)

## Affected

- NuGet NuGetGallery: < 2024.05.28
- microsoft nugetgallery: before 2024.05.28

## References

- <https://github.com/NuGet/NuGetGallery/security/advisories/GHSA-gwjh-c548-f787> (vendor-advisory)
- <https://github.com/NuGet/NuGetGallery/pull/9836> (issue-tracking)
- <https://github.com/NuGet/NuGetGallery/commit/c52b023659f4ad7b626874c1063f2b5e878a4fe0> (patch)

## Sources

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

---

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