# http-proxy-middleware (npm)

The one-liner node.js proxy middleware for connect, express, next.js and more

- Latest: 4.2.2 (2026-11-15)
- Licence: MIT
- Downloads: 131086379 last month
- Advisories on the latest version: 0

- CVE-2026-140102 HIGH: http-proxy-middleware: Unauthenticated remote gateway crash via an `Upgrade` request to a path outside `pathFilter` followed by a TCP RST (ws: true) Fixed in 2.0.12, 3.0.11, 4.2.2.
- CVE-2026-140103 MODERATE: http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival Fixed in 4.2.1, 3.0.10, 2.0.11.
- CVE-2026-55602 MODERATE: http-proxy-middleware `router` host+path substring matching allows Host-header-driven backend routing bypass Fixed in 3.0.6, 4.1.0, 2.0.10.
- CVE-2026-55603 HIGH: http-proxy-middleware: multipart/form-data field injection via unescaped CRLF in `fixRequestBody` Fixed in 3.0.7, 4.1.1.
- CVE-2025-32996 MODERATE: http-proxy-middleware can call writeBody twice because "else if" is not used Fixed in 2.0.8, 3.0.4.
- CVE-2025-32997 MODERATE: http-proxy-middleware allows fixRequestBody to proceed even if bodyParser has failed Fixed in 2.0.9, 3.0.5.
- CVE-2024-21536 HIGH: Denial of service in http-proxy-middleware Fixed in 2.0.7, 3.0.3.

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.
