Skip to main content

Improper Input Validation


Severity High
Score 7.5/10


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 the 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. This issue affects @sveltejs/adapter-node versions 2.0.0 through 2.1.2, 3.0.0 through 3.0.3, and 4.0.0, and @sveltejs/kit versions 2.0.0 through 2.4.2.

  • LOW
  • NONE
  • NONE
  • NONE
  • NONE
  • HIGH

CWE-20 - Improper Input Validation

The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Advisory Timeline

  • Published