Improper Handling of Exceptional Conditions Affecting @sveltejs/kit package, versions <2.57.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-SVELTEJSKIT-15967888
  • published10 Apr 2026
  • disclosed10 Apr 2026
  • creditUnknown

Introduced: 10 Apr 2026

NewCVE-2026-40074  (opens in a new tab)
CWE-755  (opens in a new tab)

How to fix?

Upgrade @sveltejs/kit to version 2.57.1 or higher.

Overview

@sveltejs/kit is a SvelteKit framework and CLI

Affected versions of this package are vulnerable to Improper Handling of Exceptional Conditions in the redirect() function in the handle server hook when the location parameter contains characters invalid in an HTTP header. An attacker can cause an unhandled TypeError and disrupt service availability by supplying unsanitized user input to the location parameter.

CVSS Base Scores

version 4.0
version 3.1