Vulnerability library
Security checkApril 10, 2026

@sveltejs/kit: Unvalidated redirect in handle hook causes Denial-of-Service

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpm@sveltejs/kit

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

Update the @sveltejs/kit package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 2.57.0
  • Patched version(s): 2.57.1

References

Could your website be exposed too?

SmartScanner can check your website for @sveltejs/kit: Unvalidated redirect in handle hook causes Denial-of-Service and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated April 10, 2026