{"id":"CVE-2025-32996","published":"2025-04-15T00:00:00Z","modified":"2025-04-15T03:55:51Z","title":"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","vendor":"chimurai","product":"http-proxy-middleware","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00475,"percentile":0.41952,"provenance":"source"},"cwes":[{"id":"CWE-670","name":"Always-Incorrect Control Flow Implementation"}],"references":[{"url":"https://github.com/chimurai/http-proxy-middleware/commit/020976044d113fc0bcbbaf995e91d05e2829a145","tags":[]},{"url":"https://github.com/chimurai/http-proxy-middleware/pull/1089","tags":[]},{"url":"https://github.com/chimurai/http-proxy-middleware/releases/tag/v2.0.8","tags":[]},{"url":"https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.4","tags":[]}],"priority":{"score":11.2,"factors":[{"name":"EPSS percentile","points":8.39},{"name":"CVSS severity","points":2.8}]},"vendorSlug":"chimurai","affectedVersions":[{"vendor":"chimurai","product":"http-proxy-middleware","versions":["< 2.0.8",">= 3.0.0, < 3.0.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-15T03:55:21.353843Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"http-proxy-middleware","vulnerableRanges":[">=1.3.0, <2.0.8",">=3.0.0, <3.0.4"],"patched":["2.0.8","3.0.4"],"from":["GHSA-4www-5p9h-95mh"],"provenance":"source"}],"summary":{"text":"The http-proxy-middleware library (the chimurai package, in versions before 2.0.8 and 3.x before 3.0.4) has a control-flow flaw in which the writeBody routine can be invoked twice because an \"else if\" branch was written as a separate check. An attacker who can send network requests to a server using the affected middleware can trigger the double call, but only under conditions that are not present in ordinary traffic, and the impact is limited to availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:30Z"},"euvd":{"id":"EUVD-2025-11356","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-chimurai-http-proxy-middleware-cve-2025-32996","children":[{"from":"CVE-2025-32996","to":"CVE-2025-32997","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:http-proxy-middleware","fromFixed":"3.0.4","toFixed":"3.0.5","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:http-proxy-middleware","fromFixed":"2.0.8","toFixed":"2.0.9","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/handlers/fix-request-body.ts"],"commits":["https://github.com/chimurai/http-proxy-middleware/commit/020976044d113fc0bcbbaf995e91d05e2829a145","https://github.com/chimurai/http-proxy-middleware/commit/1bdccbeec243850f1d2bb50ea0ff2151e725d67e"],"basis":"shared function","functions":["fixRequestBody"]}]}],"packageHistory":[{"cve":"CVE-2024-21536","published":"2024-10-19","fixed":"3.0.3","kev":false,"link":{"from":"CVE-2024-21536","to":"CVE-2025-32996","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:http-proxy-middleware","fromFixed":"3.0.3","toFixed":"3.0.4","daysApart":178},{"kind":"version-step","provenance":"source","package":"npm:http-proxy-middleware","fromFixed":"2.0.7","toFixed":"2.0.8","daysApart":178}]}},{"cve":"CVE-2025-32996","published":"2025-04-15","fixed":"3.0.4","kev":false},{"cve":"CVE-2025-32997","published":"2025-04-15","fixed":"3.0.5","kev":false},{"cve":"CVE-2026-55602","published":"2026-06-22","fixed":"4.1.0","kev":false},{"cve":"CVE-2026-55603","published":"2026-06-22","fixed":"4.1.1","kev":false}],"package":"npm:http-proxy-middleware"}}