Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @sveltejs/adapter-node
  4. ›
  5. CVE-2024-23641

CVE-2024-23641: Improper Input Validation

January 24, 2024

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.

References

  • github.com/advisories/GHSA-g5m6-hxpp-fc49
  • github.com/sveltejs/kit/commit/af34142631c876a7eb62ff81f71e8a3f90dafee9
  • github.com/sveltejs/kit/security/advisories/GHSA-g5m6-hxpp-fc49

Code Behaviors & Features

Detect and mitigate CVE-2024-23641 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.1.2, all versions starting from 3.0.0 before 3.0.3, version 4.0.0

Fixed versions

  • 2.1.2
  • 3.0.3
  • 4.0.1

Solution

Upgrade to versions 2.1.2, 3.0.3, 4.0.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

npm/@sveltejs/adapter-node/CVE-2024-23641.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:02 +0000.