Medium

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

  • Disclosed: 15.04.2025
  • Updated: 11.10.2026 10:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package http-proxy-middleware >= 1.3.0, < 2.0.8, >= 3.0.0, < 3.0.4 2.0.8, 3.0.4

References

CVSS score 4/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L
Weakness (CWE)
CWE-670
Platform
npm
Package
http-proxy-middleware
Disclosed
15.04.2025
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-4www-5p9h-95mh - CC BY 4.0

Vulnerability history: http-proxy-middleware

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
5
First → latest
10.2024 06.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2
  • Medium 3

Disclosures per year

  1. 2024: 1
  2. 2025: 2
  3. 2026: 2
  1. High · 7.5 CVE-2026-55603 >= 3.0.4, < 3.0.7, >= 4.0.0, < 4.1.1 3.0.7, 4.1.1
  2. Medium CVE-2026-55602 >= 3.0.0, < 3.0.6, >= 4.0.0, < 4.1.0, >= 0.16.0, < 2.0.10 3.0.6, 4.1.0, 2.0.10
  3. Medium · 4.0 CVE-2025-32997 >= 1.3.0, < 2.0.9, >= 3.0.0, < 3.0.5 2.0.9, 3.0.5
  4. http-proxy-middleware can call writeBody twice because "else if" is not used this entry
    Medium · 4.0 CVE-2025-32996 >= 1.3.0, < 2.0.8, >= 3.0.0, < 3.0.4 2.0.8, 3.0.4
  5. High · 7.5 CVE-2024-21536 < 2.0.7, >= 3.0.0, < 3.0.3 2.0.7, 3.0.3

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.