CVE-2026-40074: CWE-755: Improper Handling of Exceptional Conditions in sveltejs 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 some platforms, especially if the location passed to redirect contains unsanitized user input. This vulnerability is fixed in 2.57.1.
AI Analysis
Technical Summary
SvelteKit, a web application framework, had an improper handling of exceptional conditions (CWE-755) in its redirect function when used inside the handle server hook. If the location parameter passed to redirect contains characters invalid in HTTP headers, it triggers an unhandled TypeError, potentially causing a denial of service. This affects all versions prior to 2.57.1. The vulnerability has a CVSS 4.0 base score of 6.3, indicating medium severity. No known exploits are reported in the wild. The vulnerability is fixed in SvelteKit version 2.57.1.
Potential Impact
The vulnerability can cause a denial of service on affected platforms by triggering an unhandled TypeError when invalid characters are passed to the redirect function inside the handle server hook. This is especially risky if the location parameter includes unsanitized user input, allowing attackers to disrupt service availability. There is no indication of remote code execution or data breach. No known exploits have been reported.
Mitigation Recommendations
Upgrade SvelteKit to version 2.57.1 or later, where this vulnerability is fixed. Since the vendor advisory confirms the fix in 2.57.1, applying this official update is the recommended remediation. Patch status is confirmed by the vendor advisory. No additional mitigation steps are indicated.
CVE-2026-40074: CWE-755: Improper Handling of Exceptional Conditions in sveltejs kit
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
SvelteKit, a web application framework, had an improper handling of exceptional conditions (CWE-755) in its redirect function when used inside the handle server hook. If the location parameter passed to redirect contains characters invalid in HTTP headers, it triggers an unhandled TypeError, potentially causing a denial of service. This affects all versions prior to 2.57.1. The vulnerability has a CVSS 4.0 base score of 6.3, indicating medium severity. No known exploits are reported in the wild. The vulnerability is fixed in SvelteKit version 2.57.1.
Potential Impact
The vulnerability can cause a denial of service on affected platforms by triggering an unhandled TypeError when invalid characters are passed to the redirect function inside the handle server hook. This is especially risky if the location parameter includes unsanitized user input, allowing attackers to disrupt service availability. There is no indication of remote code execution or data breach. No known exploits have been reported.
Mitigation Recommendations
Upgrade SvelteKit to version 2.57.1 or later, where this vulnerability is fixed. Since the vendor advisory confirms the fix in 2.57.1, applying this official update is the recommended remediation. Patch status is confirmed by the vendor advisory. No additional mitigation steps are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-09T00:39:12.205Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d9d9721cc7ad14da3f8648
Added to database: 4/11/2026, 5:17:38 AM
Last enriched: 4/18/2026, 2:23:33 PM
Last updated: 5/26/2026, 6:53:56 PM
Views: 75
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.