Skip to main content
← All vulnerabilities
CVE-2024-23641GHSA-G5M6-HXPP-FC49

Sending a GET or HEAD request with a body crashes SvelteKit

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.4.3, 2.1.2, 3.0.3, 4.0.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • sveltejs kit

    From 2.0.0 · fixed in 2.4.3; From 2.0.0 · fixed in 2.1.2; From 3.0.0 · fixed in 3.0.3

  • @sveltejs/kitnpm

    From 2.0.0 · fixed in 2.4.3

  • @sveltejs/adapter-nodenpm

    From 2.0.0 · fixed in 2.1.2

  • @sveltejs/adapter-nodenpm

    From 3.0.0 · fixed in 3.0.3

  • @sveltejs/adapter-nodenpm

    From 4.0.0 · fixed in 4.0.1

References 2

GitHub · sveltejs/kit