6.3medium
SvelteKit's invalidated redirect in handle hook causes Denial-of-Service
- Severity
- 6.3medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.65% (higher than 46% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-3f6h-2hrp-w5wx
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| sveltejs kit | < 2.57.1 | CVE List |
| @sveltejs/kit (npm) | before 2.57.1 | GitHub Advisory Database |
| svelte kit | before 2.57.1 | NVD |
All scores
| GitHub_M | 6.3medium CVSS:4.0 | 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 |
| GitHub | medium CVSS:4.0 | 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 |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
SvelteKit es un framework para desarrollar rápidamente aplicaciones web robustas y de alto rendimiento usando Svelte. Antes de la versión 2.57.1, ’redirect’, cuando se llama desde dentro del hook del servidor ’handle’ con un parámetro ’location’ que contiene caracteres no válidos en una cabecera HTTP, causará un TypeError no manejado. Esto podría resultar en DoS en algunas plataformas, especialmente si la ubicación pasada a ’redirect’ contiene entrada de usuario no saneada. Esta vulnerabilidad está corregida en la versión 2.57.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-40074 changed 2026-04-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3f6h-2hrp-w5wx changed 2026-04-10 | CC-BY-4.0 |
| NVD | CVE-2026-40074 changed 2026-10-26 | Public domain |