{"id":"GHSA-4www-5p9h-95mh","summary":"http-proxy-middleware can call writeBody twice because \"else if\" is not used","details":"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.","aliases":["CVE-2025-32996"],"modified":"2026-07-17T21:16:55.260505485Z","published":"2025-04-15T03:30:34Z","database_specific":{"cwe_ids":["CWE-670"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2025-04-16T15:23:58Z","nvd_published_at":"2025-04-15T03:15:18Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32996"},{"type":"WEB","url":"https://github.com/chimurai/http-proxy-middleware/pull/1089"},{"type":"WEB","url":"https://github.com/chimurai/http-proxy-middleware/commit/020976044d113fc0bcbbaf995e91d05e2829a145"},{"type":"PACKAGE","url":"https://github.com/chimurai/http-proxy-middleware"},{"type":"WEB","url":"https://github.com/chimurai/http-proxy-middleware/releases/tag/v2.0.8"},{"type":"WEB","url":"https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.4"}],"affected":[{"package":{"name":"http-proxy-middleware","ecosystem":"npm","purl":"pkg:npm/http-proxy-middleware"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.3.0"},{"fixed":"2.0.8"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-4www-5p9h-95mh/GHSA-4www-5p9h-95mh.json"}},{"package":{"name":"http-proxy-middleware","ecosystem":"npm","purl":"pkg:npm/http-proxy-middleware"},"ranges":[{"type":"SEMVER","events":[{"introduced":"3.0.0"},{"fixed":"3.0.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-4www-5p9h-95mh/GHSA-4www-5p9h-95mh.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L"}]}