{"id":"CVE-2026-40074","published":"2026-04-10T16:26:07Z","modified":"2026-04-14T14:17:29Z","title":"SvelteKit's invalidated redirect in handle hook causes Denial-of-Service","vendor":"sveltejs","product":"kit","tier":"tail","description":{"text":"SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. Prior to 2.57.1, redirect, when called from inside the handle server hook with a location parameter containing characters that are invalid in a HTTP header, will cause an unhandled TypeError. This could result in DoS on some platforms, especially if the location passed to redirect contains unsanitized user input. This vulnerability is fixed in 2.57.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00372,"percentile":0.31974,"provenance":"source"},"cwes":[{"id":"CWE-755","name":"Improper Handling of Exceptional Conditions"}],"references":[{"url":"https://github.com/sveltejs/kit/security/advisories/GHSA-3f6h-2hrp-w5wx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sveltejs/kit/commit/10d7b44425c3d9da642eecce373d0c6ef83b4fcd","tags":["x_refsource_MISC"]},{"url":"https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.57.1","tags":["x_refsource_MISC"]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":6.39},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"sveltejs","affectedVersions":[{"vendor":"sveltejs","product":"kit","versions":["< 2.57.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-14T14:17:18.734745Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@sveltejs/kit","vulnerableRanges":["<2.57.1"],"patched":["2.57.1"],"from":["GHSA-3f6h-2hrp-w5wx"],"provenance":"source"}],"summary":{"text":"SvelteKit's kit product contains a flaw in its handle server hook, where calling redirect with a location parameter holding characters invalid in an HTTP header triggers an unhandled TypeError. An unauthenticated remote attacker can trigger it over the network without user interaction, typically by supplying unsanitized user input that flows into the redirect location, which may cause denial of service on some platforms.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:04Z"},"euvd":{"id":"EUVD-2026-21504","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sveltejs-kit-cve-2023-29003","parents":[{"from":"CVE-2023-29003","to":"CVE-2026-40074","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/kit/types/index.d.ts"],"commits":["https://github.com/sveltejs/kit/commit/bb2253d51d00aba2e4353952d4fb0dcde6c77123","https://github.com/sveltejs/kit/commit/10d7b44425c3d9da642eecce373d0c6ef83b4fcd"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-67647","published":"2026-01-15","fixed":"2.49.5","kev":false},{"cve":"CVE-2026-22803","published":"2026-01-15","fixed":"2.49.5","kev":false,"link":{"from":"CVE-2026-22803","to":"CVE-2026-40074","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@sveltejs/kit","fromFixed":"2.49.5","toFixed":"2.57.1","daysApart":85}]}},{"cve":"CVE-2026-40073","published":"2026-04-10","fixed":"2.57.1","kev":false},{"cve":"CVE-2026-40074","published":"2026-04-10","fixed":"2.57.1","kev":false},{"cve":"CVE-2026-66062","published":"2026-08-07","fixed":"2.70.2","kev":false},{"cve":"CVE-2026-114060","published":"2026-10-21","fixed":"3.0.0","kev":false},{"cve":"CVE-2026-114061","published":"2026-10-21","fixed":"3.0.0","kev":false}],"package":"npm:@sveltejs/kit"}}