Vulnerability · Published Apr 10, 2026 · Assigned by GitHub_M

CVE-2026-40074SvelteKit's invalidated redirect in handle hook causes Denial-of-Service

Medium 6.3

In plain English

A medium-severity security flaw in kit from sveltejs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 31% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.3Medium
Exploit odds (30 days)0.4%top 69.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@sveltejs/kit2.57.1GHSA-3f6h-2hrp-w5wx

Affected products (as reported)

VendorProductVersions
sveltejs kit < 2.57.1

Weakness: CWE-755 · Vector: 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

References