VDB
Sign up
MEDIUM

GHSA-3f6h-2hrp-w5wx

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

Quick fix

GHSA-3f6h-2hrp-w5wx — @sveltejs/kit: upgrade to the fixed version with the command below.

npm install @sveltejs/kit@2.57.1

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/@sveltejs/kit
Introduced in: 0Fixed in: 2.57.1
Fixnpm install @sveltejs/kit@2.57.1

References