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.
Analysis and contextual insights are available on OpenCVE Cloud.
Remediation
No vendor fix or workaround currently provided.
Additional remediation guidance may be available on OpenCVE Cloud.
Tracking
Sign in to view the affected projects.
Advisories
| Source | ID | Title |
|---|---|---|
EUVD |
EUVD-2024-36565 | 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. |
References
History
Thu, 04 Sep 2025 19:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Microsoft
Microsoft nugetgallery |
|
| CPEs | cpe:2.3:a:microsoft:nugetgallery:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Microsoft
Microsoft nugetgallery |
Status: PUBLISHED
Assigner: GitHub_M
Published:
Updated: 2024-08-02T03:50:55.991Z
Reserved: 2024-06-05T20:10:46.497Z
Link: CVE-2024-37304
Updated: 2024-06-12T17:58:23.676Z
Status : Analyzed
Published: 2024-06-12T15:15:52.910
Modified: 2025-09-04T19:12:20.983
Link: CVE-2024-37304
No data.
OpenCVE Enrichment
Updated: 2025-07-13T11:06:18Z
Weaknesses
EUVD