# CVE-2025-32996: http-proxy-middleware can call writeBody twice because "else if" is not used

- Severity: Medium 4.0 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2025-04-15T00:00:00.000Z
- Modified: 2026-09-10T03:50:23.529Z
- Also known as: GHSA-4www-5p9h-95mh
- Weaknesses: CWE-670
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- chimurai http-proxy-middleware: before 2.0.8; from 3.0.0 before 3.0.4
- http-proxy-middleware (npm): from 1.3.0 before 2.0.8; from 3.0.0 before 3.0.4

## Every score

- mitre: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L`
- GitHub: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/chimurai/http-proxy-middleware/commit/020976044d113fc0bcbbaf995e91d05e2829a145> (patch, web)
- <https://github.com/chimurai/http-proxy-middleware/pull/1089> (issue-tracking, web)
- <https://github.com/chimurai/http-proxy-middleware/releases/tag/v2.0.8> (release-notes, web)
- <https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.4> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-32996> (advisory)
- <https://github.com/chimurai/http-proxy-middleware> (package)

## Sources

- CVE List: [CVE-2025-32996](https://www.cve.org/CVERecord?id=CVE-2025-32996), CVE Terms of Use, modified 2025-04-15
- GitHub Advisory Database: [GHSA-4www-5p9h-95mh](https://github.com/advisories/GHSA-4www-5p9h-95mh), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-32996](https://nvd.nist.gov/vuln/detail/CVE-2025-32996), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-32996 · Whole record: https://cve.day/CVE-2025-32996.json · Rebuilt by cve.day 2026-11-25T22:58:56.456Z
