Chimurai http-proxy-middleware
http-proxy-middleware `router` host+path substring matching allows Host-header-driven backend routing bypass
Edge device · Router / network deviceproduct or title mentions "router" (medium confidence)
http-proxy-middleware is node.js http-proxy middleware. From 0.16.0 until 2.0.10, 3.0.6, and 4.1.0, http-proxy-middleware documents router proxy-table entries as host, path, or host+path selectors, but the host+path implementation uses unanchored substring matching on attacker-controlled request metadata. As a result, a crafted Host header that is only a superstring match for a configured host+path key can still route a request to an unintended backend. This vulnerability is fixed in 2.0.10, 3.0.6, and 4.1.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.0.0, < 4.1.0
- >= 3.0.0, < 3.0.6
- >= 0.16.0, < 2.0.10
Fixed in 4.1.0, 3.0.6, 2.0.10
Mitigation
Upgrade http-proxy-middleware to 4.1.0 or 3.0.6 or 2.0.10 or later.
References
- Vendor advisory github.com/chimurai/http-proxy-middleware/secu…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.