{"schema":"threatline.record/2","record":{"id":"CVE-2024-23641","aliases":["GHSA-g5m6-hxpp-fc49"],"summary":"Sending a GET or HEAD request with a body crashes SvelteKit","details":"### 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`","categories":["Libraries & packages"],"product":"@sveltejs/kit","vendor":"sveltejs","ecosystem":"npm","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-g5m6-hxpp-fc49","source_modified_at":"2026-10-18T14:58:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@sveltejs/kit"},"range":">= 2.0.0, < 2.4.3"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-g5m6-hxpp-fc49","source_modified_at":"2026-10-18T14:58:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@sveltejs/adapter-node"},"range":">= 2.0.0, < 2.1.2"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-g5m6-hxpp-fc49","source_modified_at":"2026-10-18T14:58:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@sveltejs/adapter-node"},"range":">= 3.0.0, < 3.0.3"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-g5m6-hxpp-fc49","source_modified_at":"2026-10-18T14:58:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@sveltejs/adapter-node"},"range":"= 4.0.0"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2024-23641","source_modified_at":"2024-11-13T15:09:39.781Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"kit","vendor":"sveltejs","versions":[{"status":"affected","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"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-g5m6-hxpp-fc49","source_modified_at":"2026-09-10T03:50:00.238557856Z","fetched_at":"2026-10-23T18:48:36.087640Z","package":{"name":"@sveltejs/kit","ecosystem":"npm","purl":"pkg:npm/%40sveltejs/kit"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.4.3"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-g5m6-hxpp-fc49","source_modified_at":"2026-09-10T03:50:00.238557856Z","fetched_at":"2026-10-23T18:48:36.087640Z","package":{"name":"@sveltejs/adapter-node","ecosystem":"npm","purl":"pkg:npm/%40sveltejs/adapter-node"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.1.2"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-g5m6-hxpp-fc49","source_modified_at":"2026-09-10T03:50:00.238557856Z","fetched_at":"2026-10-23T18:48:36.087640Z","package":{"name":"@sveltejs/adapter-node","ecosystem":"npm","purl":"pkg:npm/%40sveltejs/adapter-node"},"ranges":[{"type":"SEMVER","events":[{"introduced":"3.0.0"},{"fixed":"3.0.3"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-g5m6-hxpp-fc49","source_modified_at":"2026-09-10T03:50:00.238557856Z","fetched_at":"2026-10-23T18:48:36.087640Z","package":{"name":"@sveltejs/adapter-node","ecosystem":"npm","purl":"pkg:npm/%40sveltejs/adapter-node"},"ranges":[{"type":"SEMVER","events":[{"introduced":"4.0.0"},{"fixed":"4.0.1"}]}],"versions":["4.0.0"]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-g5m6-hxpp-fc49","source_modified_at":"2026-10-18T14:58:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@sveltejs/kit"},"version":"2.4.3"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-g5m6-hxpp-fc49","source_modified_at":"2026-10-18T14:58:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@sveltejs/adapter-node"},"version":"2.1.2"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-g5m6-hxpp-fc49","source_modified_at":"2026-10-18T14:58:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@sveltejs/adapter-node"},"version":"3.0.3"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-g5m6-hxpp-fc49","source_modified_at":"2026-10-18T14:58:25Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@sveltejs/adapter-node"},"version":"4.0.1"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-g5m6-hxpp-fc49","source_modified_at":"2026-09-10T03:50:00.238557856Z","fetched_at":"2026-10-23T18:48:36.087640Z","package":{"name":"@sveltejs/kit","ecosystem":"npm","purl":"pkg:npm/%40sveltejs/kit"},"version":"2.4.3"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-g5m6-hxpp-fc49","source_modified_at":"2026-09-10T03:50:00.238557856Z","fetched_at":"2026-10-23T18:48:36.087640Z","package":{"name":"@sveltejs/adapter-node","ecosystem":"npm","purl":"pkg:npm/%40sveltejs/adapter-node"},"version":"2.1.2"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-g5m6-hxpp-fc49","source_modified_at":"2026-09-10T03:50:00.238557856Z","fetched_at":"2026-10-23T18:48:36.087640Z","package":{"name":"@sveltejs/adapter-node","ecosystem":"npm","purl":"pkg:npm/%40sveltejs/adapter-node"},"version":"3.0.3"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-g5m6-hxpp-fc49","source_modified_at":"2026-09-10T03:50:00.238557856Z","fetched_at":"2026-10-23T18:48:36.087640Z","package":{"name":"@sveltejs/adapter-node","ecosystem":"npm","purl":"pkg:npm/%40sveltejs/adapter-node"},"version":"4.0.1"}],"cvss":7.5,"severity":"High","kev":{"listed":false},"epss":{"probability":0.00764,"percentile":0.54949,"score_date":"2026-10-23"},"published_at":"2024-01-24T16:56:32.392Z","modified_at":"2026-10-18T14:58:25Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-g5m6-hxpp-fc49","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-18T14:58:25Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-23641","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2024-11-13T15:09:39.781Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-g5m6-hxpp-fc49","fetched_at":"2026-10-23T18:48:36.087640Z","source_modified_at":"2026-09-10T03:50:00.238557856Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-23641","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/sveltejs/kit/security/advisories/GHSA-g5m6-hxpp-fc49","tags":["x_refsource_CONFIRM","x_transferred"]},{"source":"CVE List","url":"https://github.com/sveltejs/kit/commit/af34142631c876a7eb62ff81f71e8a3f90dafee9","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23641","source":"GitHub Advisory Database"},{"url":"https://github.com/advisories/GHSA-g5m6-hxpp-fc49","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial","assessed_at":"2024-11-13T15:09:24.824860Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-18T14:58:25Z","content_hash":"7beaba37827c95cda791ba11a1e0660f55d61179e168fb27bb0d9c17e6c4aa69"}}
