Sending a GET or HEAD request with a body crashes SvelteKit
sveltejs kit
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @sveltejs/kit npm |
|
|
| @sveltejs/adapter-node npm |
|
|
sveltejs kit
| Product | Affected | Fixed in |
|---|---|---|
| @sveltejs/kit npm |
|
|
| @sveltejs/adapter-node npm |
|
|
3.0.34.0.1SvelteKit 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.
From the CVE record · GitHub_M
Built and previewed or hosted SvelteKit 2 apps can crash when they receive a GET request with a body or a TRACE request. An attacker can trigger the crash by sending such a request, and the app must then be manually restarted. Prerendered pages and SvelteKit 1 apps are not affected.
Check apps using @sveltejs/kit 2.0.0 through versions before 2.4.3, or @sveltejs/adapter-node 2.0.0 through versions before 2.1.2, 3.0.0 through versions before 3.0.3, or 4.0.0 through versions before 4.0.1.