CVE-2026-40074
MEDIUM 6.3CVSS 4.0@sveltejs/kit: Unvalidated redirect in handle hook causes Denial-of-Service
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.
- Published
- 10 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-755
- Also known as
- GHSA-3f6h-2hrp-w5wx
- Sources
- NVDJSONOSV GHSA-3f6h-2hrp-w5wxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | svelte | kitcpe:2.3:a:svelte:kit:*:*:*:*:*:node.js:*:* |
< 2.57.1 | 2.57.1 |
| OSV | npm | @sveltejs/kit | < 2.57.1 | 2.57.1 |
References
- https://github.com/sveltejs/kit/commit/10d7b44425c3d9da642eecce373d0c6ef83b4fcd · Patch, WEB
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.57.1 · Product, Release Notes, WEB
- https://github.com/sveltejs/kit/security/advisories/GHSA-3f6h-2hrp-w5wx · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-40074 · ADVISORY
- https://github.com/sveltejs/kit · PACKAGE
- https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.57.1 · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 10 Apr 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 10 Apr 2026)