What’s Vulnerable › Vulnerabilities
CVE-2024-23641: Sending a GET or HEAD request with a body crashes SvelteKit
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-01-24 · updated 2026-06-17
- Weakness: CWE-20
Description
SvelteKit is a web development kit. In SvelteKit 2, sending a GET request with a body eg `{}` to a built and previewed/hosted sveltekit app throws `Request with GET/HEAD method cannot have body.` and crashes the preview/hosting. After this happens, one must manually restart the app. `TRACE` requests will also cause the app to crash. Prerendered pages and SvelteKit 1 apps are not affected. `@sveltejs/adapter-node` versions 2.1.2, 3.0.3, and 4.0.1 and `@sveltejs/kit` version 2.4.3 contain a patch for this issue.
Affected products
- Svelte Adapter-Node: from 2.0.0 before 2.1.2; from 3.0.0 before 3.0.3; 4.0.0 — fixed in 2.1.2, 3.0.3
- Svelte Kit: from 2.0.0 before 2.4.3 — fixed in 2.4.3
How to fix
Upgrade to a fixed version: Svelte Adapter-Node 2.1.2, 3.0.3; Svelte Kit 2.4.3. Check the vendor advisory for mitigations.
References
- https://github.com/sveltejs/kit/commit/af34142631c876a7eb62ff81f71e8a3f90dafee9
- https://github.com/sveltejs/kit/security/advisories/GHSA-g5m6-hxpp-fc49
- https://github.com/sveltejs/kit/commit/af34142631c876a7eb62ff81f71e8a3f90dafee9
- https://github.com/sveltejs/kit/security/advisories/GHSA-g5m6-hxpp-fc49
Get alerted when CVE-2024-23641 or the next vulnerability affects your stack