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/kit package to the latest compatible version. Followings are version details:
- Affected version(s): >= 2.0.0, < 2.4.3
- Patched version(s): 2.4.3
References
Related Issues
- Sending a GET or HEAD request with a body crashes SvelteKit (GHSA-g5m6-hxpp-fc49) - CVE-2024-23641
- SvelteKit vulnerable to Cross-Site Request Forgery - CVE-2023-29003
- parse-server crashes when receiving file download request with invalid byte range - CVE-2022-39313
- Server crashes on invalid Cloud Function or Cloud Job name - CVE-2024-29027
- Tags:
- npm
- @sveltejs/kit
Anything's wrong? Let us know Last updated on January 24, 2024