Packages / http-proxy-middleware / Security

ModerateVulnerabilityGHSA-4www-5p9h-95mhCVE-2025-32996Published 15 Apr 2025

http-proxy-middleware can call writeBody twice because "else if" is not used

Your version

Affected releases · http-proxy-middleware

  • 3.x3.0.0 – 3.0.3Fixed in 3.0.4
  • 2.x2.0.0 – 2.0.7Fixed in 2.0.8
  • 1.x1.3.0 – 1.3.1No fix on this line yet

On 3.x, the newest line:

npm install http-proxy-middleware@3.0.4
Every release on a timeline
4.x
  1. Not affected

    4.0.0 – 4.2.2

    6 releases, latest

3.x
  1. Affected

    3.0.0 – 3.0.3

    4 releases

  2. Fixed

    3.0.4 – 3.0.11

    6 releases

2.x
  1. Affected

    2.0.0 – 2.0.7

    8 releases

  2. Fixed

    2.0.8 – 2.0.12

    5 releases

1.x
  1. Not affected

    1.0.0 – 1.2.1

    12 releases

  2. Affected

    1.3.0 – 1.3.1

    2 releases

82 stable releases of http-proxy-middleware, oldest to newest, one row per major.

What happens

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.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.