All reports
Medium

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

Affected versions

Affected versions
<= 2.57.0
Fixed version
2.57.1

Exploitation

CVE-2026-40074

Probability of exploitation in the next 30 days: 0.37%

FIRST EPSS · 2026-11-22

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.

Links

Credits

  • elliott-with-the-longest-name-on-github