{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0.8.0"
                  },
                  {
                    "fixed": "2.0.12"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "3.0.0-beta.0"
                  },
                  {
                    "fixed": "3.0.11"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "4.0.0-beta.0"
                  },
                  {
                    "fixed": "4.2.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "386bed662facba30c5602ca211a5399f09cdd715"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "6911b4daefaa138767d4e4c35302b6dea2e2b64a"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "c82e123f831bae1f46d1d06d9c035e385771b7b9"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v3.0.11",
                "range": [
                  {
                    "fixed": "488fb6144b374c581d3419e2f3e0cb0a60e8c3e9"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v4.2.2",
                "range": [
                  {
                    "fixed": "b9c8f99ad80dfc48a4870307959df93d28dab74d"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "f1559c909f0ed3239a970c73f15755d65de86a53"
            },
            {
              "fixed": "303df578c651983b7a4955e1d4249520498e4b22"
            },
            {
              "introduced": "4c136abf0a1e433e1293739cb1c22e533b81275a"
            },
            {
              "fixed": "488fb6144b374c581d3419e2f3e0cb0a60e8c3e9"
            },
            {
              "introduced": "2e94f714380861525d5756a0d2881d0973a5a8ee"
            },
            {
              "fixed": "b9c8f99ad80dfc48a4870307959df93d28dab74d"
            },
            {
              "fixed": "386bed662facba30c5602ca211a5399f09cdd715"
            },
            {
              "fixed": "6911b4daefaa138767d4e4c35302b6dea2e2b64a"
            },
            {
              "fixed": "c82e123f831bae1f46d1d06d9c035e385771b7b9"
            }
          ],
          "repo": "https://github.com/chimurai/http-proxy-middleware",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-hvp5-3mrg-q5hg"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-248"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140102.json"
  },
  "details": "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.",
  "id": "CVE-2026-140102",
  "modified": "2026-11-30T23:46:19.299820847Z",
  "published": "2026-11-30T22:40:00.063Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140102.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/chimurai/http-proxy-middleware/commit/386bed662facba30c5602ca211a5399f09cdd715"
    },
    {
      "type": "FIX",
      "url": "https://github.com/chimurai/http-proxy-middleware/commit/6911b4daefaa138767d4e4c35302b6dea2e2b64a"
    },
    {
      "type": "FIX",
      "url": "https://github.com/chimurai/http-proxy-middleware/commit/c82e123f831bae1f46d1d06d9c035e385771b7b9"
    },
    {
      "type": "FIX",
      "url": "https://github.com/chimurai/http-proxy-middleware/pull/1328"
    },
    {
      "type": "FIX",
      "url": "https://github.com/chimurai/http-proxy-middleware/pull/1329"
    },
    {
      "type": "FIX",
      "url": "https://github.com/chimurai/http-proxy-middleware/pull/1330"
    },
    {
      "type": "WEB",
      "url": "https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.11"
    },
    {
      "type": "WEB",
      "url": "https://github.com/chimurai/http-proxy-middleware/releases/tag/v4.2.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-hvp5-3mrg-q5hg"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-140102"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "http-proxy-middleware: Unauthenticated remote gateway crash via an `Upgrade` request to a path outside `pathFilter` followed by a TCP RST (ws: true)"
}