{"id":"CVE-2024-23641","kind":"vulnerability","aliases":["CVE-2024-23641","GHSA-g5m6-hxpp-fc49"],"related":[],"title":"Sending a GET or HEAD request with a body crashes SvelteKit","description":"### Summary\nIn 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.\n\n```\nnode:internal/deps/undici/undici:6066\n          throw new TypeError(\"Request with GET/HEAD method cannot have body.\");\n                ^\n\nTypeError: Request with GET/HEAD method cannot have body.\n    at new Request (node:internal/deps/undici/undici:6066:17)\n    at getRequest (file:///C:/Users/admin/Desktop/reproduction/node_modules/@sveltejs/kit/src/exports/node/index.js:107:9)\n    at file:///C:/Users/admin/Desktop/reproduction/node_modules/@sveltejs/kit/src/exports/vite/preview/index.js:181:26\n    at call (file:///C:/Users/admin/Desktop/reproduction/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:44795:7)\n    at next (file:///C:/Users/admin/Desktop/reproduction/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:44739:5)\n    at file:///C:/Users/admin/Desktop/reproduction/node_modules/@sveltejs/kit/src/exports/vite/preview/index.js:172:6\n    at call (file:///C:/Users/admin/Desktop/reproduction/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:44795:7)\n    at next (file:///C:/Users/admin/Desktop/reproduction/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:44739:5)\n    at file:///C:/Users/admin/Desktop/reproduction/node_modules/@sveltejs/kit/src/exports/vite/preview/index.js:211:27\n    at call (file:///C:/Users/admin/Desktop/reproduction/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:44795:7)\n\nNode.js v20.11.0\n```\n\n`TRACE` requests will also cause the app to crash. Prerendered pages and SvelteKit 1 apps are not affected.\n\n<!--\n### Details\n_Give all details on the vulnerability. Pointing to the incriminated source code is very helpful for the maintainer._\n-->\n### PoC\n<!-- _Complete instructions, including specific configuration details, to reproduce the vulnerability._ -->\nFirst do a fresh install of SvelteKit 2 with the example app. Typescript.\n\n1. `npm run build`\n2. `npm run preview`\n3. Go to http://localhost:4173 (works)\n4. curl -X GET -d \"{}\" http://localhost:4173/bye\n5. Application crashes and http://localhost:4173 is down\n\n### Impact\n<!-- _What kind of vulnerability is it? Who is impacted?_ -->\nDenial of Service for apps using `adapter-node`","summary":"SvelteKit 2 apps crash when they receive a GET, HEAD or TRACE request that carries a body, because the request constructor throws an uncaught TypeError. An unauthenticated remote client can take the app down repeatedly with one request.","severity":"high","cvss":7.5,"epss":0.007639999967068434,"exploited":false,"exploited_at":null,"products":[{"name":"@sveltejs/kit","fixed":["2.4.3"],"affected":">= 2.0.0, < 2.4.3","ecosystem":"npm"},{"name":"@sveltejs/adapter-node","fixed":["2.1.2"],"affected":">= 2.0.0, < 2.1.2","ecosystem":"npm"},{"name":"@sveltejs/adapter-node","fixed":["3.0.3"],"affected":">= 3.0.0, < 3.0.3","ecosystem":"npm"},{"name":"@sveltejs/adapter-node","fixed":["4.0.1"],"affected":"= 4.0.0","ecosystem":"npm"},{"name":"svelte adapter-node","fixed":["2.1.2"],"affected":">= 2.0.0, < 2.1.2","ecosystem":"vendor"},{"name":"svelte adapter-node","fixed":["3.0.3"],"affected":">= 3.0.0, < 3.0.3","ecosystem":"vendor"},{"name":"svelte adapter-node","fixed":[],"affected":"= 4.0.0","ecosystem":"vendor"},{"name":"svelte kit","fixed":["2.4.3"],"affected":">= 2.0.0, < 2.4.3","ecosystem":"vendor"}],"ecosystems":["npm","vendor"],"tags":["adapter-node","cwe-20","node","package","self-hosted","sveltekit"],"not_affected_if":["managed-hosting","prerendered-only","static-export","sveltekit-1"],"how_to_check":"Check the installed version: npm ls @sveltejs/kit @sveltejs/adapter-node\nConfirm the app uses adapter-node or runs under vite preview (prerendered pages and SvelteKit 1 are not affected).","fix":"Upgrade @sveltejs/kit to 2.4.3 or later and @sveltejs/adapter-node to 2.1.2, 3.0.3 or 4.0.1 depending on the major line.\nRebuild and redeploy the app after upgrading.","status":"open","published_at":"2024-01-24T14:22:22+00:00","first_seen_at":"2026-10-23T19:11:32+00:00","triaged_at":"2026-10-23T21:45:43+00:00","updated_at":"2026-10-23T23:44:52+00:00","category":"package","confidence":0.85,"triage":{"at":"2026-10-23T21:45:43Z","model":"claude-haiku-5-5","output":{"fix":"Upgrade @sveltejs/kit to 2.4.3 or later and @sveltejs/adapter-node to 2.1.2, 3.0.3 or 4.0.1 depending on the major line.\nRebuild and redeploy the app after upgrading.","reach":"internet","impact":"low","summary":"SvelteKit 2 apps crash when they receive a GET, HEAD or TRACE request that carries a body, because the request constructor throws an uncaught TypeError. An unauthenticated remote client can take the app down repeatedly with one request.","category":"package","who_cares":["sveltekit","adapter-node","self-hosted","node"],"confidence":0.85,"needs_auth":"no","worst_case":"Unauthenticated request crashes the Node process, causing denial of service.","analyst_note":"","how_to_check":"Check the installed version: npm ls @sveltejs/kit @sveltejs/adapter-node\nConfirm the app uses adapter-node or runs under vite preview (prerendered pages and SvelteKit 1 are not affected).\nunknown","needs_analyst":false,"not_affected_if":["static-export","prerendered-only","sveltekit-1","managed-hosting"],"user_interaction":"no","needs_special_setup":"no","severity_if_unknown":"high"},"cost_usd":0.000615,"input_tokens":3903,"output_tokens":449,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-20':45B '-2024':13A,21A '-23641':14A,22A '/c':155C,161C,168C,174C,179C,186C,192C,197C,204C '/users/admin/desktop/reproduction/node_modules':156C,162C,180C,198C '/users/admin/desktop/reproduction/node_modules/vite/dist/node/chunks/dep-9a4-l-43.js':169C,175C,187C,193C,205C '1':223C,242C '107':158C '17':152C '172':182C '181':164C '2':53B,93C,236C,246C '211':200C '26':165C '27':201C '3':250C '4':256C '4173':254C,268C '4173/bye':262C '44739':176C,194C '44795':170C,188C,206C '5':177C,195C,263C '6':183C '6066':127C,151C '7':171C,189C,207C '9':159C 'adapt':42B,111C,279C 'adapter':29A,33A,37A 'adapter-nod':41B,110C,278C 'adapter-node':28A,32A,36A 'affect':227C 'also':213C 'app':54B,84B,105C,124C,216C,224C,240C,276C 'applic':264C 'bodi':9A,68B,100C,120C,137C,145C 'build':245C 'call':167C,185C,203C 'cannot':118C,135C,143C 'carri':66B 'caus':214C 'client':80B 'constructor':72B 'crash':10A,55B,122C,218C,265C 'curl':257C 'cve':12A,20A 'cwe':44B 'd':260C 'denial':272C 'eg':101C 'exampl':239C 'fc49':19A 'first':229C 'fresh':232C 'g5m6':17A 'get':3A,60B,96C,259C 'get/head':116C,133C,141C 'getrequest':154C 'ghsa':16A 'ghsa-g5m6-hxpp-fc49':15A 'go':251C 'head':5A,61B 'host':50B 'hxpp':18A 'impact':271C 'instal':233C 'internal/deps/undici/undici':126C,150C 'kit':40A 'localhost':253C,261C,267C 'method':117C,134C,142C 'new':129C,147C 'next':173C,191C 'node':30A,34A,38A,43B,46B,112C,125C,149C,280C 'node.js':208C 'npm':243C,247C 'one':88B 'packag':47B 'page':220C 'poc':228C 'prerend':219C 'preview':107C,249C 'receiv':58B 'remot':79B 'repeat':86B 'request':6A,64B,71B,89B,97C,114C,131C,139C,148C,211C 'run':244C,248C 'self':49B 'self-host':48B 'send':1A,94C 'servic':274C 'summari':90C 'svelte':27A,31A,35A,39A 'sveltejs/adapter-node':24A,25A,26A 'sveltejs/kit':23A 'sveltejs/kit/src/exports/node/index.js':157C 'sveltejs/kit/src/exports/vite/preview/index.js':163C,181C,199C 'sveltekit':11A,51B,52B,92C,104C,222C,235C 'take':82B 'throw':73B,113C,128C 'trace':63B,210C 'typeerror':76B,130C,138C 'typescript':241C 'unauthent':78B 'uncaught':75B 'use':277C 'v20.11.0':209C 'work':255C 'x':258C","nicknames":[],"mitigations":[],"who_affected":null,"tier":null,"verified":{},"analyst_revisit_at":null,"first_public_at":"2024-01-24T14:22:22+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-g5m6-hxpp-fc49","url":"https://github.com/advisories/GHSA-g5m6-hxpp-fc49","severity":"high","published_at":"2024-01-24T14:22:22+00:00","modified_at":"2026-10-18T14:58:25+00:00","first_seen_at":"2026-10-23T19:11:32+00:00","fetched_at":"2026-10-23T19:11:32+00:00","note":null},{"source":"nvd","external_id":"CVE-2024-23641","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23641","severity":null,"published_at":"2024-01-24T17:15:08+00:00","modified_at":"2026-06-17T07:13:17+00:00","first_seen_at":"2026-10-23T23:44:52+00:00","fetched_at":"2026-10-23T23:44:52+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}