CVE-2024-21536: Denial of service in http-proxy-middleware
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.
Published Oct 19, 2024 · Updated Oct 22, 2024
Affected packages
http-proxy-middleware
- Ecosystem
- npm
- Affected
- < 2.0.7
- Fixed in
- 2.0.7
- Check
npm ls http-proxy-middleware
http-proxy-middleware
- Ecosystem
- npm
- Affected
- >= 3.0.0, < 3.0.3
- Fixed in
- 3.0.3
- Check
npm ls http-proxy-middleware
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21536
- https://github.com/chimurai/http-proxy-middleware/commit/0b4274e8cc9e9a2c5a06f35fbf456ccfcebc55a5
- https://github.com/chimurai/http-proxy-middleware/commit/788b21e4aff38332d6319557d4a5b1b13b1f9a22
- https://gist.github.com/mhassan1/28be67266d82a53708ed59ce5dc3c94a
- https://security.snyk.io/vuln/SNYK-JS-HTTPPROXYMIDDLEWARE-8229906
- https://github.com/advisories/GHSA-c7qv-q95q-8v27
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-55602
http-proxy-middleware `router` host+path substring matching allows Host-header-driven backend routing bypass
medium6.9Jun 18, 2026CVE-2026-55603
http-proxy-middleware: multipart/form-data field injection via unescaped CRLF in `fixRequestBody`
high7.5Jun 18, 2026CVE-2025-32996
http-proxy-middleware can call writeBody twice because "else if" is not used
medium4.0Apr 15, 2025CVE-2025-32997
http-proxy-middleware allows fixRequestBody to proceed even if bodyParser has failed
medium4.0Apr 15, 2025
