SvelteKit's invalidated redirect in handle hook causes Denial-of-Service
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sveltejs | kit | before 2.57.1 | 2.57.1 | Patch available | CNA |
| — | @sveltejs/kit (npm) | before 2.57.1 | 2.57.1 | Patch available | GHSA-3f6h-2hrp-w5wx |
- kit Vendorsveltejs Affected before 2.57.1 Fixed in 2.57.1 Patch available CNA
- @sveltejs/kit (npm) Vendor— Affected before 2.57.1 Fixed in 2.57.1 Patch available GHSA-3f6h-2hrp-w5wx
Remediation
- Fix · CNA kit (sveltejs) Fixed in 2.57.1
- Fix · GHSA-3f6h-2hrp-w5wx @sveltejs/kit (npm) Fixed in 2.57.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40074
- 2026-10-03 Alias added: GHSA-3f6h-2hrp-w5wx
References
Advisory 2
More sveltejs Kit vulnerabilities
- TI-2024-15660 Sending a GET or HEAD request with a body crashes SvelteKit CVSS 3.1HIGH 7.5
- TI-2025-41390 SvelteKit Denial of service and possible SSRF when using prerendering CVSS 4.0HIGH 8.4
- TI-2026-18320 SvelteKit has a memory amplification DoS in Remote Functions binary form deserializer CVSS 4.0HIGH 8.2
- TI-2026-28904 SvelteKit has a BODY_SIZE_LIMIT bypass in @sveltejs/adapter-node CVSS 4.0HIGH 8.2
Sources
- CVE-2026-40074 · CVE Program
- CVE-2026-40074 · NVD
- FIRST EPSS
- GHSA-3f6h-2hrp-w5wx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences