CVE-2026-40074 in Svelte Kit
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...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Svelte | Kit | < 2.57.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-40074 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-212962-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2026-04-10 |
| Last modified | 2026-10-26 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-755: CWE-755
Analysis AI-written, not human-reviewed
CVE-2026-40074 affects SvelteKit versions prior to 2.57.1, where the redirect function in the handle server hook can cause an unhandled TypeError if the location parameter contains invalid HTTP header characters, potentially leading to a Denial of Service (DoS) on some platforms.
An attacker can exploit this vulnerability by providing a maliciously crafted location parameter to the redirect function within the handle server hook. If the location parameter includes characters that are invalid in an HTTP header, it can trigger an unhandled TypeError, causing the application to crash or become unresponsive.
Questions
What is CVE-2026-40074?
CVE-2026-40074 affects SvelteKit versions prior to 2.57.1, where the redirect function in the handle server hook can cause an unhandled TypeError if the location parameter contains invalid HTTP header characters, potentially leading to a Denial of Service (DoS) on some platforms.
What is the CVSS score for CVE-2026-40074?
CVE-2026-40074 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 0.6%.
Is CVE-2026-40074 actively exploited?
No confirmed active exploitation of CVE-2026-40074 as of 2026-11-03.
How do I remediate CVE-2026-40074?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2026-40074?
CVE-2026-40074 affects Svelte Kit.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Svelte","product":"Kit","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-26.