Advisory

GHSA-3f6h-2hrp-w5wx

Also known as: CVE-2026-40074

Summary

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

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-04-10 17:32 UTC
Modified
2026-04-10 20:03 UTC

Affected packages and fixes

@sveltejs/kit

npm · All systems

Affected

  • introduced 0, fixed 2.57.1 (semver)

Fixed versions

2.57.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences