CVE-2026-84381

NameCVE-2026-84381
DescriptionHTTPX2 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-httpx2 (PTS)forky2.5.0-1fixed
sid2.12.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-httpx2source(unstable)(not affected)

Notes

- python-httpx2 <not-affected> (Vulnerable code never in a Debian released version)
https://github.com/pydantic/httpx2/security/advisories/GHSA-7mj9-2mp8-4m2p
https://github.com/pydantic/httpx2/pull/1104
Fixed by: https://github.com/pydantic/httpx2/commit/fb008dd700b761d955210d9692475c3e2f379453 (v2.10.0)

Search for package or bug name: Reporting problems