CVE-2025-32996: http-proxy-middleware can call writeBody twice because "else if" is not used
In http-proxy-middleware before 2.0.8 and 3.x before 3.0.4, writeBody can be called twice because "else if" is not used.
Published Apr 15, 2025 · Updated Apr 28, 2025
Affected packages
http-proxy-middleware
- Ecosystem
- npm
- Affected
- >= 3.0.0, < 3.0.4
- Fixed in
- 3.0.4
- Check
npm ls http-proxy-middleware
http-proxy-middleware
- Ecosystem
- npm
- Affected
- >= 1.3.0, < 2.0.8
- Fixed in
- 2.0.8
- Check
npm ls http-proxy-middleware
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
In http-proxy-middleware before 2.0.8 and 3.x before 3.0.4, writeBody can be called twice because "else if" is not used.
Credited to sealonohana.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-32996
- https://github.com/chimurai/http-proxy-middleware/pull/1089
- https://github.com/chimurai/http-proxy-middleware/commit/020976044d113fc0bcbbaf995e91d05e2829a145
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v2.0.8
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.4
- https://github.com/advisories/GHSA-4www-5p9h-95mh
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-32997
http-proxy-middleware allows fixRequestBody to proceed even if bodyParser has failed
medium4.0Apr 15, 2025CVE-2024-21536
Denial of service in http-proxy-middleware
high7.5Oct 19, 2024
