{"id":"CVE-2024-53261","published":"2024-11-25T19:15:28Z","modified":"2024-11-25T20:04:36Z","title":"Cross-Site Scripting attack (XSS) on dev mode 404 page in SvelteKit","vendor":"sveltejs","product":"kit","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2,"severity":"LOW","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0035,"percentile":0.29397,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/sveltejs/kit/security/advisories/GHSA-rjjv-87mx-6x3h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sveltejs/kit/commit/d338d4635a7fd947ba5112df6ee632c4a0979438","tags":["x_refsource_MISC"]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":5.88},{"name":"CVSS severity","points":1.4}]},"vendorSlug":"sveltejs","affectedVersions":[{"vendor":"sveltejs","product":"kit","versions":["< 2.8.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-11-25T20:01:35.408501Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@sveltejs/kit","vulnerableRanges":["<2.8.3"],"patched":["2.8.3"],"from":["GHSA-rjjv-87mx-6x3h"],"provenance":"source"}],"summary":{"text":"A cross-site scripting flaw in SvelteKit's development-mode 404 page lets unsanitised input from the request URL flow into HTML rendered back to the user, affecting the Vite dev server code in the kit package's dev and utils modules. An attacker would need network access to the dev server, low-privileged access, and a developer to interact with a crafted link, since the Vite dev server is not network-exposed by default.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:04Z"},"euvd":{"id":"EUVD-2024-3380","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-29003","published":"2023-04-04","fixed":"1.15.1","kev":false},{"cve":"CVE-2023-29008","published":"2023-04-06","fixed":"1.15.2","kev":false},{"cve":"CVE-2024-23641","published":"2024-01-24","fixed":"2.4.3","kev":false,"link":{"from":"CVE-2024-23641","to":"CVE-2024-53261","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@sveltejs/kit","fromFixed":"2.4.3","toFixed":"2.8.3","daysApart":306}]}},{"cve":"CVE-2024-53261","published":"2024-11-25","fixed":"2.8.3","kev":false},{"cve":"CVE-2024-53262","published":"2024-11-25","fixed":"2.8.3","kev":false},{"cve":"CVE-2025-32388","published":"2025-04-15","fixed":"2.20.6","kev":false,"link":{"from":"CVE-2024-53261","to":"CVE-2025-32388","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@sveltejs/kit","fromFixed":"2.8.3","toFixed":"2.20.6","daysApart":141}]}},{"cve":"CVE-2025-67647","published":"2026-01-15","fixed":"2.49.5","kev":false}],"package":"npm:@sveltejs/kit"}}