GitHub Advisoryadvisory · npm
GHSA-4www-5p9h-95mh http-proxy-middleware can call writeBody twice because "else if" is not used
MEDIUM
Official page ↗
- Aliases
- CVE-2025-32996
- Ecosystem
- npm
- Packages
- http-proxy-middleware
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L
- Weaknesses
- CWE-670
- Reviewed
- 2025-04-16
Affected packages
• npm http-proxy-middleware: >= 1.3.0, < 2.0.8 → fixed in 2.0.8
• npm http-proxy-middleware: >= 3.0.0, < 3.0.4 → fixed in 3.0.4
Description
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.
Related
Alias · CVE (1)
- CVE-2025-32996 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. vulnerability
Weakness · CWE (1)
- CWE-670 Always-Incorrect Control Flow Implementation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-32996 advisory
- https://github.com/chimurai/http-proxy-middleware/pull/1089 web
- https://github.com/chimurai/http-proxy-middleware/commit/020976044d113fc0bcbbaf995e91d05e2829a145 web
- https://github.com/chimurai/http-proxy-middleware package
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v2.0.8 web
- https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.4 web