CVE-2024-53261: Cross-Site Scripting attack (XSS) on dev mode 404 page in SvelteKit
Vulnerability summary
CVE-2024-53261 is a medium (CVSS 5.4) vulnerability in svelte sveltekit. EPSS estimates a 0.35% chance of exploitation in the next 30 days, higher than 28.6% of scored vulnerabilities.
Not severe (CVSS 2, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 25-11-2024PublishedVulnerability first disclosed.
- 25-11-2024Last modifiedVulnerability information updated.
Description
SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. "Unsanitized input from *the request URL* flows into `end`, where it is used to render an HTML page returned to the user. This may result in a Cross-Site Scripting attack (XSS)." The files `packages/kit/src/exports/vite/dev/index.js` and `packages/kit/src/exports/vite/utils.js` both contain user controllable data which under specific conditions may flow to dev mode pages. There is little to no expected impact. The Vite development is not exposed to the network by default and even if someone were able to trick a developer into executing an XSS against themselves, a development database should not have any sensitive data. None the less this issue has been addressed in version 2.8.3 and all users are advised to upgrade.
CVSS metrics
4 scores · 3 sources · 2 versions- NVDNIST2.0LowCVSS: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
- OSV · NpmEcosystem advisory · calculated0.0UnknownCVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:NDiffers
EPSS trend
Probability
0.35%
Chance of exploitation in the next 30 days
Percentile
29%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.33% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
@sveltejs1 product
- kit< 2.8.3
Svelte1 product
- sveltekit< 2.8.3
Sveltejs1 product
- kit< 2.8.3
3 vendors · 3 products
References
6 links- github.com/sveltejs/kit/security/advisories/GHSA-rjjv-87mx-6x3hX Refsource CONFIRMWEBThird Party Advisory
- github.com/sveltejs/kitPACKAGE