{"answers":{"affected":"2 open source packages ship an affected version, including @sveltejs/kit. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-40074 in the wild and no public exploit code.","fix":"Upgrade @sveltejs/kit to 2.57.1 or later.","what":"CVE-2026-40074 is a medium-severity denial of service vulnerability in sveltejs kit, published on 10 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40074 and fix it if it is affected.\n\nWhat it is: CVE-2026-40074 is a medium-severity denial of service vulnerability in sveltejs kit, published on 10 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-40074 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @sveltejs/kit (npm): affected all versions; fixed in 2.57.1\n- @sveltejs/kit (npm): affected all versions; fixed in 2.57.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40074/ (Markdown: https://insights.sbomify.com/CVE-2026-40074/index.md)","id":"CVE-2026-40074","markdown":"https://insights.sbomify.com/CVE-2026-40074/index.md","name":"CVE-2026-40074","record":{"aliases":["GHSA-3f6h-2hrp-w5wx"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"SvelteKit framework","requires_auth":"none","summary":"Attackers can cause a Denial of Service in SvelteKit applications by triggering an unhandled TypeError via invalid characters in redirect locations within handle hooks.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"kit","vendor":"svelte"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L","version":"4.0"},"cwes":[{"id":"CWE-755","name":"Improper Handling of Exceptional Conditions"}],"description":"SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. Prior to 2.57.1, redirect, when called from inside the handle server hook with a location parameter containing characters that are invalid in a HTTP header, will cause an unhandled TypeError. This could result in DoS on some platforms, especially if the location passed to redirect contains unsanitized user input. This vulnerability is fixed in 2.57.1.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"SvelteKit's invalidated redirect in handle hook causes Denial-of-Service","id":"CVE-2026-40074","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"OpenMRS Core arbitrary file read via path traversal in ModuleResourcesServlet","id":"CVE-2026-40075"},"packages":[{"ecosystem":"npm","fixed":["2.57.1"],"introduced":["0"],"last_affected":[],"package":"@sveltejs/kit","purl":null,"source":"GHSA-3f6h-2hrp-w5wx"},{"ecosystem":"npm","fixed":["2.57.1"],"introduced":["0"],"last_affected":[],"package":"@sveltejs/kit","purl":"pkg:npm/%40sveltejs/kit","source":"GHSA-3f6h-2hrp-w5wx"}],"prev":{"headline":"SvelteKit has a BODY_SIZE_LIMIT bypass in @sveltejs/adapter-node","id":"CVE-2026-40073"},"products":["kit"],"published":"2026-04-10","related":[{"cvss_score":8.2,"headline":"SvelteKit has a BODY_SIZE_LIMIT bypass in @sveltejs/adapter-node","id":"CVE-2026-40073","kev_date_added":null,"published":"2026-04-10"},{"cvss_score":8.2,"headline":"SvelteKit has a memory amplification DoS in Remote Functions binary form deserializer","id":"CVE-2026-22803","kev_date_added":null,"published":"2026-01-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-14","vendors":["sveltejs"]},"summary":"Attackers can cause a Denial of Service in SvelteKit applications by triggering an unhandled TypeError via invalid characters in redirect locations within handle hooks.","url":"https://insights.sbomify.com/CVE-2026-40074/"}