{"id":"GHSA-3f6h-2hrp-w5wx","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.","aliases":["CVE-2026-40074"],"modified":"2026-04-10T20:03:55.059697Z","published":"2026-04-10T17:32:00Z","database_specific":{"github_reviewed_at":"2026-04-10T17:32:00Z","nvd_published_at":"2026-04-10T17:17:12Z","cwe_ids":["CWE-755"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/sveltejs/kit/security/advisories/GHSA-3f6h-2hrp-w5wx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40074"},{"type":"WEB","url":"https://github.com/sveltejs/kit/commit/10d7b44425c3d9da642eecce373d0c6ef83b4fcd"},{"type":"PACKAGE","url":"https://github.com/sveltejs/kit"},{"type":"WEB","url":"https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.57.1"},{"type":"WEB","url":"https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.57.1"}],"affected":[{"package":{"name":"@sveltejs/kit","ecosystem":"npm","purl":"pkg:npm/%40sveltejs/kit"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.57.1"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 2.57.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-3f6h-2hrp-w5wx/GHSA-3f6h-2hrp-w5wx.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}