{"id":"CVE-2024-23641","aliases":["CVE-2024-23641","GHSA-g5m6-hxpp-fc49"],"related":[],"kind":"vulnerability","state":"published","title":"Sending a GET or HEAD request with a body crashes SvelteKit","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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`","format":"markdown","source":"ghsa"},{"lang":"es","text":"SvelteKit es un kit de desarrollo web. En SvelteKit 2, enviar una solicitud GET con un cuerpo, por ejemplo, `{}` a una aplicación Sveltekit creada y vista previa/alojada arroja `La solicitud con el método GET/HEAD no puede tener cuerpo.` y bloquea la vista previa/alojamiento. Después de que esto suceda, se debe reiniciar manualmente la aplicación. Las solicitudes de `TRACE` también provocarán que la aplicación falle. Las páginas prerenderizadas y las aplicaciones SvelteKit 1 no se ven afectadas. `@sveltejs/adapter-node` versiones 2.1.2, 3.0.3 y 4.0.1 y `@sveltejs/kit` versión 2.4.3 contienen un parche para este problema.","source":"nvd"}],"published":"2024-01-24T14:22:22.000Z","modified":"2026-09-10T03:50:00.238Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":">= 2.0.0, < 2.4.3","status":"affected"},{"version":">= 2.0.0, < 2.1.2","status":"affected"},{"version":">= 3.0.0, < 3.0.3","status":"affected"},{"version":"= 4.0.0","status":"affected"}],"vendor":"sveltejs","product":"kit","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.4.3"}],"ecosystem":"npm","package":"@sveltejs/kit","purl":"pkg:npm/%40sveltejs/kit","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.1.2"}],"ecosystem":"npm","package":"@sveltejs/adapter-node","purl":"pkg:npm/%40sveltejs/adapter-node","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.0.3"}],"ecosystem":"npm","package":"@sveltejs/adapter-node","purl":"pkg:npm/%40sveltejs/adapter-node","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.0.1"}],"ecosystem":"npm","package":"@sveltejs/adapter-node","purl":"pkg:npm/%40sveltejs/adapter-node","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"2.1.2"},{"status":"affected","introduced":"3.0.0","fixed":"3.0.3"},{"status":"affected","version":"4.0.0"}],"vendor":"svelte","product":"adapter-node","cpe":"cpe:2.3:a:svelte:adapter-node:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"2.4.3"}],"vendor":"svelte","product":"kit","cpe":"cpe:2.3:a:svelte:kit:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/sveltejs/kit/security/advisories/GHSA-g5m6-hxpp-fc49","tags":["exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sveltejs/kit/commit/af34142631c876a7eb62ff81f71e8a3f90dafee9","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23641","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/sveltejs/kit","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-11-13T15:09:24.824Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-23641","url":"https://www.cve.org/CVERecord?id=CVE-2024-23641","licence":"CVE Terms of Use","modified":"2024-11-13T15:09:39.781Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g5m6-hxpp-fc49","url":"https://github.com/advisories/GHSA-g5m6-hxpp-fc49","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:00.238Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-23641","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23641","licence":"Public domain","modified":"2026-06-17T07:13:17.320Z"}],"updatedAt":"2026-11-25T22:58:36.319Z","epss":{"score":0.00764,"percentile":0.56619,"date":"2026-12-01T12:00:22.000Z"}}