Vulnerability library
Security checkJanuary 24, 2024

Sending a GET or HEAD request with a body crashes SvelteKit

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpm@sveltejs/kit

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

In SvelteKit 2 sending a GET request with a body eg {} to a SvelteKit app in preview or with adapter-node throws Request with GET/HEAD method cannot have body. and crashes the app.

TRACE requests will also cause the app to crash. Prerendered pages and SvelteKit 1 apps are not affected.

<!–

Recommendation

Update the @sveltejs/kit package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 2.0.0, < 2.4.3
  • Patched version(s): 2.4.3

References

Could your website be exposed too?

SmartScanner can check your website for Sending a GET or HEAD request with a body crashes SvelteKit and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 24, 2024