Packages / @sveltejs/kit / Security
ModerateVulnerabilityGHSA-3f6h-2hrp-w5wxCVE-2026-40074Published 10 Apr 2026
@sveltejs/kit: Unvalidated redirect in handle hook causes Denial-of-Service
Affected releases · @sveltejs/kit
- 2.x2.0.0 – 2.57.0Fixed in 2.57.1
- 1.x and older0.0.8 – 1.30.4No fix, no longer updated
On 2.x, the newest line:
npm install @sveltejs/kit@2.57.13.x
Not affected
3.0.0 – 3.1.0
3 releases, latest
2.x
Affected
2.0.0 – 2.57.0
211 releases
Fixed
2.57.1 – 2.70.3
26 releases
1.x
Affected
1.0.0 – 1.30.4
128 releases
0.x
Affected
0.0.8 – 0.0.30
21 releases
Is your project affected?
Paste your package.json, or type the range you declare for @sveltejs/kit. It is read in your browser and sent nowhere.
What happens
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.