Skip to content
Heist/ feed
Back to feed
High

python-httpx2 — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-84381

HTTPX2 is a next generation HTTP client for Python. Prior to 2.10.0, httpcore2 fails to start TLS in src/httpcore2/httpcore2/_sync/socks_proxy.py and src/httpcore2/httpcore2/_async/socks_proxy.py when the remote origin uses wss through a SOCKS5 proxy because the TLS upgrade condition only recognizes https. HTTPX2 exposes the flaw through Client.websocket() and AsyncClient.websocket() from 2.6.0 through 2.9.1, so the opening handshake, query parameters, Authorization headers, cookies, and subsequent frames can cross the proxy path in plaintext without certificate verification. An attacker controlling or observing that path can read or modify traffic and impersonate the WebSocket server. This issue is fixed in httpcore2 2.10.0 and HTTPX2 2.10.0.

Products
python-httpx2
Affected versions
2.5.0-1
Fixed versions
Not specified
CVEs
CVE-2026-84381
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:21 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-84381

core-osv · Original source

Published 2 Sept 2026, 19:18 UTC

HTTPX2 is a next generation HTTP client for Python. Prior to 2.10.0, httpcore2 fails to start TLS in src/httpcore2/httpcore2/_sync/socks_proxy.py and src/httpcore2/httpcore2/_async/socks_proxy.py when the remote origin uses wss through a SOCKS5 proxy because the TLS upgrade condition only recognizes https. HTTPX2 exposes the flaw through Client.websocket() and AsyncClient.websocket() from 2.6.0 through 2.9.1, so the opening handshake, query parameters, Authorization headers, cookies, and subsequent frames can cross the proxy path in plaintext without certificate verification. An attacker controlling or observing that path can read or modify traffic and impersonate the WebSocket server. This issue is fixed in httpcore2 2.10.0 and HTTPX2 2.10.0.

osv:UBUNTU-CVE-2026-84381

python-httpx2

Fixed versions: Not specified

Complete source record
{
  "id": "c96bcbf874eeeb8202dc317466b737aab48470064de50d9d7d30b10ac710d958",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-84381",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-84381",
    "summary": "HTTPX2 is a next generation HTTP client for Python. Prior to 2.10.0, httpcore2 fails to start TLS in src/httpcore2/httpcore2/_sync/socks_proxy.py and src/httpcore2/httpcore2/_async/socks_proxy.py when the remote origin uses wss through a SOCKS5 proxy because the TLS upgrade condition only recognizes https. HTTPX2 exposes the flaw through Client.websocket() and AsyncClient.websocket() from 2.6.0 through 2.9.1, so the opening handshake, query parameters, Authorization headers, cookies, and subsequent frames can cross the proxy path in plaintext without certificate verification. An attacker controlling or observing that path can read or modify traffic and impersonate the WebSocket server. This issue is fixed in httpcore2 2.10.0 and HTTPX2 2.10.0.",
    "evidence": "osv:UBUNTU-CVE-2026-84381",
    "products": [
      {
        "name": {
          "value": "python-httpx2",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5.0-1",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-84381",
      "aliases": [
        "UBUNTU-CVE-2026-84381"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-httpx2",
            "purl": "pkg:deb/ubuntu/python-httpx2?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.5.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-84381.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-httpcore2",
                "binary_version": "2.5.0-1"
              },
              {
                "binary_name": "python3-httpx2",
                "binary_version": "2.5.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:01:12.195461212Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-84381"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-84381",
        "https://www.cve.org/CVERecord?id=CVE-2026-84381",
        "https://github.com/pydantic/httpx2/security/advisories/GHSA-7mj9-2mp8-4m2p",
        "https://github.com/pydantic/httpx2/pull/1104",
        "https://github.com/pydantic/httpx2/commit/fb008dd700b761d955210d9692475c3e2f379453",
        "https://github.com/pydantic/httpx2/releases/tag/v2.10.0"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-84381",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 361219,
  "published_at": "2026-09-02T19:18:00+00:00"
}