cvelo
P2 · HighCVSS 7.5EPSS 1.0%

http-proxy-middleware: Unauthenticated remote gateway crash via an `Upgrade` request to a path outside `pathFilter` followed by a TCP RST (ws: true)

  • CVE-2026-140102
  • GHSA-hvp5-3mrg-q5hg
  • EUVD-2026-139788

Description

http-proxy-middleware is node.js http-proxy middleware. From 0.8.0 until 2.0.12, 3.0.11, and 4.2.2, an Upgrade request whose path does not match pathFilter can leave the raw socket without an error listener when ws: true is enabled. A remote unauthenticated client can send such an Upgrade request and reset the TCP connection, causing an unhandled ECONNRESET error that terminates the gateway process even when middleware and server error callbacks are configured. This issue is fixed in versions 2.0.12, 3.0.11, and 4.2.2.

Text from the CVE.org record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • chimurai http-proxy-middleware

    Affected versionsFixed in
    >= 0.8.0, < 2.0.12none stated
    >= 3.0.0-beta.0, < 3.0.11none stated
    >= 4.0.0-beta.0, < 4.2.2none stated
  • http-proxy-middlewarenpm

    Affected versionsFixed in
    from 4.0.0-beta.0 to before 4.2.24.2.2
    from 3.0.0-beta.0 to before 3.0.113.0.11
    from 0.8.0 to before 2.0.122.0.12

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.