CVE-2026-40074
JSON

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 packageVersionsReported by
sveltejs kit< 2.57.1CVE List
@sveltejs/kit (npm)before 2.57.1GitHub Advisory Database
svelte kitbefore 2.57.1NVD

All scores

GitHub_M6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-755

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

SourceRecordLicence
CVE ListCVE-2026-40074 changed 2026-04-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-3f6h-2hrp-w5wx changed 2026-04-10CC-BY-4.0
NVDCVE-2026-40074 changed 2026-10-26Public domain