NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

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

mediumCVSS 4.0 6.3GHSA-3f6h-2hrp-w5wx

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.

Published Apr 10, 2026

Affected packages

@sveltejs/kit

Ecosystem
npm
Affected
<= 2.57.0
Fixed in
2.57.1
Check
npm ls @sveltejs/kit

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to elliott-with-the-longest-name-on-github.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries