Vulnerability · Published Jan 24, 2024 · Assigned by GitHub_M

CVE-2024-23641Sending a GET or HEAD request with a body crashes SvelteKit

High 7.5

In plain English

A high-severity improper input validation in kit from sveltejs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.8%top 44.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@sveltejs/adapter-node2.1.2GHSA-g5m6-hxpp-fc49
npm@sveltejs/adapter-node3.0.3GHSA-g5m6-hxpp-fc49
npm@sveltejs/adapter-node4.0.1GHSA-g5m6-hxpp-fc49
npm@sveltejs/kit2.4.3GHSA-g5m6-hxpp-fc49

Affected products (as reported)

VendorProductVersions
sveltejs kit >= 2.0.0, < 2.4.3>= 2.0.0, < 2.1.2>= 3.0.0, < 3.0.3= 4.0.0

Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References