CVE-2024-53261 json
Cross-Site Scripting attack (XSS) on dev mode 404 page in SvelteKit
published 2024-11-25 23 mo ago modified 2026-06-17 4 mo ago also EUVD-2024-3380 , GHSA-rjjv-87mx-6x3h
- cvss
- 5.4
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 28%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @sveltejs/kit 2.8.3
- svelte kit 2.8.3
- svelte sveltekit 2.8.3
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 23 mo ago
Exploit prediction
0.35% chance of exploitation in the next 30 days, higher than 28% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 2.0 | 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 |
| GitHub | 3.1 | 0.0 | CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:N |
| CNA | 4.0 | 2.0 | 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 |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @sveltejs/kit | <2.8.3 |
2.8.3 |
Affected products
- sveltejs kit
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/sveltejs/kit/commit/d338d4635a7fd947ba5112df6ee632c4a0979438
web, patch
-
github.com
/sveltejs/kit/pull/13039
web
-
github.com
/sveltejs/kit/security/advisories/GHSA-rjjv-87mx-6x3h
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-53261
advisory
-
github.com
/sveltejs/kit
package
-
github.com
/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.8.3
web
Sources
- CVE List CVE-2024-53261
- GitHub Advisory GHSA-rjjv-87mx-6x3h
- NVD CVE-2024-53261
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.