{"answers":{"affected":"4 open source packages ship an affected version, including http-proxy-middleware. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21536 exists.","fix":"Upgrade http-proxy-middleware to a fixed version for your release line: 2.0.7 or 3.0.3.","what":"CVE-2024-21536 is a high-severity denial of service vulnerability in http-proxy-middleware, published on 19 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-21536 and fix it if it is affected.\n\nWhat it is: CVE-2024-21536 is a high-severity denial of service vulnerability in http-proxy-middleware, published on 19 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21536 exists.\n\nAffected packages and fixed versions:\n- http-proxy-middleware (npm): affected all versions; fixed in 2.0.7\n- http-proxy-middleware (npm): affected all versions; fixed in 2.0.7\n- http-proxy-middleware (npm): affected from 3.0.0; fixed in 3.0.3\n- http-proxy-middleware (npm): affected from 3.0.0; fixed in 3.0.3\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-2024-21536/ (Markdown: https://insights.sbomify.com/CVE-2024-21536/index.md)","id":"CVE-2024-21536","markdown":"https://insights.sbomify.com/CVE-2024-21536/index.md","name":"CVE-2024-21536","record":{"aliases":["CLSA-2026-1774657386","CLSA-2026-1776299658","CLSA-2026-1784164086","CLSA-2026-1784164093","CLSA-2026-1784596275","GHSA-c7qv-q95q-8v27","ROOT-APP-NPM-CVE-2024-21536"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js proxy middleware","requires_auth":"none","summary":"An attacker can crash the Node.js server by sending requests to specific paths, causing a Denial of Service via an unhandled promise rejection.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"http-proxy-middleware","vendor":"chimurai"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"Versions of the package http-proxy-middleware before 2.0.7, from 3.0.0 and before 3.0.3 are vulnerable to Denial of Service (DoS) due to an UnhandledPromiseRejection error thrown by micromatch. An attacker could kill the Node.js process and crash the server by making requests to certain paths.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Denial of service in http-proxy-middleware","id":"CVE-2024-21536","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":4,"n_references":5,"next":{"headline":"lilconfig Code Injection vulnerability","id":"CVE-2024-21537"},"packages":[{"ecosystem":"npm","fixed":["2.0.7"],"introduced":["0"],"last_affected":[],"package":"http-proxy-middleware","purl":null,"source":"GHSA-c7qv-q95q-8v27"},{"ecosystem":"npm","fixed":["2.0.7"],"introduced":["0"],"last_affected":[],"package":"http-proxy-middleware","purl":"pkg:npm/http-proxy-middleware","source":"GHSA-c7qv-q95q-8v27"},{"ecosystem":"npm","fixed":["3.0.3"],"introduced":["3.0.0"],"last_affected":[],"package":"http-proxy-middleware","purl":null,"source":"GHSA-c7qv-q95q-8v27"},{"ecosystem":"npm","fixed":["3.0.3"],"introduced":["3.0.0"],"last_affected":[],"package":"http-proxy-middleware","purl":"pkg:npm/http-proxy-middleware","source":"GHSA-c7qv-q95q-8v27"}],"prev":{"headline":"Cross site scripting in markdown-to-jsx","id":"CVE-2024-21535"},"products":["http-proxy-middleware","org.webjars.npm:http-proxy-middleware"],"published":"2024-10-19","related":[{"cvss_score":7.5,"headline":"http-proxy-middleware: multipart/form-data field injection via unescaped CRLF in `fixRequestBody`","id":"CVE-2026-55603","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":6.9,"headline":"http-proxy-middleware `router` host+path substring matching allows Host-header-driven backend routing bypass","id":"CVE-2026-55602","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":4,"headline":"http-proxy-middleware can call writeBody twice because \"else if\" is not used","id":"CVE-2025-32996","kev_date_added":null,"published":"2025-04-15"},{"cvss_score":4,"headline":"http-proxy-middleware allows fixRequestBody to proceed even if bodyParser has failed","id":"CVE-2025-32997","kev_date_added":null,"published":"2025-04-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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-02","vendors":["n/a"]},"summary":"An attacker can crash the Node.js server by sending requests to specific paths, causing a Denial of Service via an unhandled promise rejection.","url":"https://insights.sbomify.com/CVE-2024-21536/"}