CVE-2024-53261: @sveltejs/kit vulnerable to XSS on dev mode 404 page
2
CVSS Score
4.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.34577%
CWE
Published
11/25/2024
Updated
1/22/2025
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
@sveltejs/kit | npm | < 2.8.3 | 2.8.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsanitized URL input being rendered in the dev mode 404 page. The commit diff shows the fix added escape_html() calls specifically in the not_found function within utils.js, which handles 404 responses. Prior to the patch, this function directly interpolated URL-derived values (base and prefixed) into HTML without proper escaping. The Snyk analysis confirms tainted data flows from request handling to this rendering function. The high confidence comes from the direct correlation between the vulnerability description, commit fixes, and the function's role in constructing HTML responses with user-controlled input.