Skip to main content
VulnerabilityPublished

CVE-2026-132651: pydantic httpx2 · Inefficient Algorithmic Complexity

Affects pydantic httpx2Source CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.3 Medium : upgrade to 2.18.0 when convenient.

Data as of 4 Dec 2026, 12:19 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (Pydantic)CVSS 3.15.3
Patch
Available – fixed in 2.18.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.

What to do

Upgrade pydantic httpx2 to 2.18.0.

Affected software

ProductAffectedFixed in
pydantichttpx2Affected
  • >=2.6.0 <2.18.0
Fixed in
  • 2.18.0
PyPIhttpx2pkg:pypi/httpx2Other threatsAffected
  • >=2.6.0 <2.18.0
Fixed in
  • 2.18.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade httpx2 to version 2.18.0 or later, where the vulnerability is fixed by improved message reassembly logic. Until upgrading, limit max_message_size_bytes to a small value and connect only to trusted wss:// (encrypted) WebSocket endpoints to reduce exposure. Avoid connecting to untrusted endpoints over unencrypted ws:// connections.

Description

CVE-2026-132651 is an inefficient algorithmic complexity vulnerability in the httpx2 library used by pydantic. The issue arises from how fragmented WebSocket messages are reassembled by copying the entire accumulated message on every continuation frame, leading to quadratic time complexity. This can cause performance degradation and blocking of the event loop in asynchronous clients when connecting to untrusted WebSocket endpoints over unencrypted connections. The vulnerability affects versions from 2.6.0 up to but excluding 2.18.0. A fix is available in version 2.18.0, which improves message reassembly efficiency.

References

Community reviews

Loading reviews…