Quick answers
- Is CVE-2024-23641 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2024-23641 being exploited in the wild.
- How severe is CVE-2024-23641?
- High severity, with a CVSS score of 7.5, published 24 January 2024.
- Which products and versions are affected?
- @sveltejs/adapter-node (npm) >= 2.0.0, < 2.1.2; @sveltejs/kit (npm) >= 2.0.0, < 2.4.3; Svelte Adapter-Node 4.0.0; SvelteKit 2.0.0 to 2.4.2.
- Is there a fix for CVE-2024-23641?
- A patch was published on 2024-01-24: SvelteKit 2.4.3, adapter-node 2.1.2, 3.0.3, 4.0.1 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2024-23641 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2024-23641?
- Check whether you run @sveltejs/adapter-node (npm), @sveltejs/kit (npm), Svelte Adapter-Node or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
The vulnerability is an improper input validation flaw in SvelteKit 2 and related adapter-node packages. When the framework processes an HTTP GET or HEAD request containing a message body, it fails to strip or ignore the body before constructing a Web Request object, which throws a TypeError because the Web Request specification disallows bodies on GET/HEAD requests. The crash occurs in both the preview server and production deployments using adapter-node. No authentication or user interaction is required; any network-accessible SvelteKit application is exploitable. An attacker can trigger repeated crashes via simple curl commands, causing persistent denial of service. Patches are available: SvelteKit 2.4.3+, adapter-node 2.1.2+, 3.0.3+, or 4.0.1+.
Affected products
- Svelte SvelteKit 2.0.0 to 2.4.2
- Svelte adapter-node 2.0.0 to 2.1.1
- Svelte adapter-node 3.0.0 to 3.0.2
- Svelte adapter-node 4.0.0
Identifiers
- CVE-2024-23641
- GHSA-g5m6-hxpp-fc49
Timeline
- 2024-01-24: disclosed
- 2024-01-24: patched: SvelteKit 2.4.3, adapter-node 2.1.2, 3.0.3, 4.0.1 released