# CVE-2026-84381: HTTPX2: Secure WebSocket traffic sent without TLS through SOCKS proxies

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-11-30)
- Published: 2026-09-02T18:01:31.126Z
- Modified: 2026-09-10T12:25:50.011Z
- Also known as: GHSA-7mj9-2mp8-4m2p, PYSEC-2026-3844, PYSEC-2026-3845
- Weaknesses: CWE-319
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pydantic httpx2: >= 2.6.0, < 2.10.0
- pydantic httpcore2: < 2.10.0
- httpcore2 (PyPI): before 2.10.0
- httpx2 (PyPI): from 2.6.0 before 2.10.0

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 8.1 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/pydantic/httpx2/security/advisories/GHSA-7mj9-2mp8-4m2p> (web)
- <https://github.com/pydantic/httpx2/pull/1104> (web)
- <https://github.com/pydantic/httpx2/commit/fb008dd700b761d955210d9692475c3e2f379453> (web)
- <https://github.com/pydantic/httpx2/releases/tag/v2.10.0> (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)

## Sources

- CVE List: [CVE-2026-84381](https://www.cve.org/CVERecord?id=CVE-2026-84381), CVE Terms of Use, modified 2026-09-05
- GitHub Advisory Database: [GHSA-7mj9-2mp8-4m2p](https://github.com/advisories/GHSA-7mj9-2mp8-4m2p), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-84381](https://nvd.nist.gov/vuln/detail/CVE-2026-84381), Public domain, modified 2026-09-09
- PyPA Advisory Database: [PYSEC-2026-3844](https://osv.dev/vulnerability/PYSEC-2026-3844), CC-BY-4.0, modified 2026-09-10
- PyPA Advisory Database: [PYSEC-2026-3845](https://osv.dev/vulnerability/PYSEC-2026-3845), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-84381 · Whole record: https://cve.day/CVE-2026-84381.json · Rebuilt by cve.day 2026-11-25T22:59:36.141Z
