CVE-2026-40074 json
SvelteKit's invalidated redirect in handle hook causes Denial-of-Service
published 2026-04-10 6 mo ago modified 2026-10-26 13 d ago also EUVD-2026-21504 , GHSA-3f6h-2hrp-w5wx
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 31%
- public exploits
- 0
- none known
Summary
SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. Prior to 2.57.1, 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. This vulnerability is fixed in 2.57.1.
Patch / fix
- npm @sveltejs/kit 2.57.1
- svelte kit 2.57.1
- svelte sveltekit 2.57.1
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 6 mo ago
Exploit prediction
0.37% chance of exploitation in the next 30 days, higher than 31% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.3 | 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 |
| CNA | 4.0 | 6.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @sveltejs/kit | <2.57.1 |
2.57.1 |
Affected products
- sveltejs kit
Classification
- Weakness
-
- CWE-755 Improper Handling of Exceptional Conditions
References
-
github.com
/sveltejs/kit/commit/10d7b44425c3d9da642eecce373d0c6ef83b4fcd
web, patch
-
github.com
/sveltejs/kit/security/advisories/GHSA-3f6h-2hrp-w5wx
web, vendor-advisory
-
github.com
/sveltejs/kit/releases/tag/@sveltejs/kit@2.57.1
web, product, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-40074
advisory
-
github.com
/sveltejs/kit
package
-
github.com
/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.57.1
web
Sources
- CVE List CVE-2026-40074
- GitHub Advisory GHSA-3f6h-2hrp-w5wx
- NVD CVE-2026-40074
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.