CVE-2024-23641

Sending a GET or HEAD request with a body crashes SvelteKit

State
Published
Severity
7.5 High
Published
Jan 24, 2024
Updated
Nov 13, 2024
Reserved
Jan 19, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HGitHub_M

Weaknesses

  • CWE-20 Improper Input Validation

Affected Products

ProductVersions
kitsveltejs
  • >= 2.0.0, < 2.4.3Affected
  • >= 2.0.0, < 2.1.2Affected
  • >= 3.0.0, < 3.0.3Affected
  • = 4.0.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.