# CVE-2026-40074: SvelteKit's invalidated redirect in handle hook causes Denial-of-Service

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-04-10T16:26:07.068Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-3f6h-2hrp-w5wx
- Weaknesses: CWE-755
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- sveltejs kit: < 2.57.1
- @sveltejs/kit (npm): before 2.57.1
- svelte kit: before 2.57.1

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/sveltejs/kit/security/advisories/GHSA-3f6h-2hrp-w5wx> (vendor-advisory, web)
- <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://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)

## Sources

- CVE List: [CVE-2026-40074](https://www.cve.org/CVERecord?id=CVE-2026-40074), CVE Terms of Use, modified 2026-04-14
- GitHub Advisory Database: [GHSA-3f6h-2hrp-w5wx](https://github.com/advisories/GHSA-3f6h-2hrp-w5wx), CC-BY-4.0, modified 2026-04-10
- NVD: [CVE-2026-40074](https://nvd.nist.gov/vuln/detail/CVE-2026-40074), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40074 · Whole record: https://cve.day/CVE-2026-40074.json · Rebuilt by cve.day 2026-11-25T22:59:18.525Z
