Sending a GET or HEAD request with a body crashes SvelteKit (GHSA-g5m6-hxpp-fc49)
- Severity:
- High
Description
In SvelteKit 2 sending a GET request with a body eg {} to a SvelteKit app in preview or with adapter-node throws Request with GET/HEAD method cannot have body. and crashes the app.
TRACE requests will also cause the app to crash. Prerendered pages and SvelteKit 1 apps are not affected.
<!–
Recommendation
Update the @sveltejs/adapter-node package to the latest compatible version. Followings are version details:
Affected version(s): **= 4.0.0 >= 3.0.0, < 3.0.3 >= 2.0.0, < 2.1.2** Patched version(s): **4.0.1 3.0.3 2.1.2**
References
Related Issues
- Sending a GET or HEAD request with a body crashes SvelteKit - CVE-2024-23641
- SvelteKit is vulnerable to denial of service and possible SSRF when using prerendering (GHSA-j62c-4x62-9r35) - CVE-2025-67647
- parse-server crashes when receiving file download request with invalid byte range - CVE-2022-39313
- Undici's Proxy-Authorization header not cleared on cross-origin redirect for dispatch, request, stream, pipeline - CVE-2024-30260
- Tags:
- npm
- @sveltejs/adapter-node
Anything's wrong? Let us know Last updated on January 24, 2024