CVE-2024-54138: NuGet Gallery - Stored XSS
- Cve: CVE-2024-54138
- Name: NuGet Gallery - Stored XSS
- 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.
- Impact: Attackers can execute arbitrary scripts in the context of other users, leading to session hijacking or data theft.
- Remediation: Update to version 2024.12.06 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to submit malicious Markdown content
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00401
- Epss percentile: 0.34841
- Assignee: [email protected]
- Published at: 2024-12-06T22:15:21Z
- Age in days: 718
- Modified at: 2026-06-17T08:09:50Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-54138
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/NuGet/NuGetGallery/pull/10296 | nvd | Issue Tracking, Patch |
| https://github.com/NuGet/NuGetGallery/security/advisories/GHSA-x448-p234-x5p8 | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| microsoft:nugetgallery | < 2024.12.06 | no | nvd | /v1/products/microsoft/nugetgallery |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| NuGet/NuGetGallery | fix, pull, security_advisory | yes | /v1/repositories/NuGet/NuGetGallery |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts