CVE-2026-84381
HIGH 8.1CVSS 3.1HTTPX2: Secure WebSocket traffic sent without TLS through SOCKS proxies
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.
- Published
- 2 Sep 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-319
- Also known as
- GHSA-7mj9-2mp8-4m2pPYSEC-2026-3844PYSEC-2026-3845
- Sources
- NVDJSONOSV GHSA-7mj9-2mp8-4m2pJSONOSV PYSEC-2026-3844JSONOSV PYSEC-2026-3845JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | PyPA | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | httpcore2 | < 2.10.0 | 2.10.0 |
| OSV | PyPI | httpx2 | >= 2.6.0, < 2.10.0 | 2.10.0 |
References
- https://github.com/pydantic/httpx2/commit/fb008dd700b761d955210d9692475c3e2f379453 · WEB
- https://github.com/pydantic/httpx2/pull/1104 · WEB
- https://github.com/pydantic/httpx2/releases/tag/v2.10.0 · WEB
- https://github.com/pydantic/httpx2/security/advisories/GHSA-7mj9-2mp8-4m2p · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-84381 · ADVISORY
- https://github.com/pydantic/httpx2 · PACKAGE
- https://pypi.org/project/httpcore2 · PACKAGE
- https://github.com/advisories/GHSA-7mj9-2mp8-4m2p · ADVISORY
- https://pypi.org/project/httpx2 · PACKAGE
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 2 Sep 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Sep 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Sep 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Sep 2026)