CVE-2026-133422 Quadratic time unique_items list validation in Pydantic V1
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2026-133422?
CVE-2026-133422 is a medium-severity vulnerability in pydantic, published on 20 Nov 2026.
Official description
Validating an untrusted list into a field constrained with unique_items=True with Pydantic V1 takes quadratic time: an input of a few hundred kilobytes takes seconds to validate.
The ConstrainedList.unique_items_validator validator (in pydantic/types.py) checks each item against all the following ones. For a list with no duplicates (the common, valid case), this results in a quadratic number of comparisons.
The issue was fixed in commit 6ec75e57f277a820ec583e601167f25fe8dc7c87. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later.
Impact: denial of service through validation of untrusted input. Affected are applications validating untrusted lists into fields constrained with unique_items=True (using conlist() or Field()).
The fix only applies to lists of builtin scalar types (int, float, str, bytes, bool and None), for which duplicates can be detected in linear time. Lists of other types (e.g. models or dictionaries) are still checked in quadratic time, as their items aren't guaranteed to be hashable: bound their size using the max_items constraint.
Pydantic V2 models are not affected.
Weakness: CWE-407
Which versions are affected by CVE-2026-133422?
Status by vendor (4)
| Who | Release | Status | Packages |
|---|---|---|---|
| Red Hat | 9 | deferred | linux-mcp-serverpkg:rpm/redhat/linux-mcp-server?distro=rhel-9 |
| Red Hat | 10 | deferred | linux-mcp-serverpkg:rpm/redhat/linux-mcp-server?distro=rhel-10 |
| Red Hat | ansible_automation_platform:2 | deferred | automation-controller, python-pydantic, python3.11-pydantic and 2 morepkg:rpm/redhat/automation-controllerpkg:rpm/redhat/python-pydanticpkg:rpm/redhat/python3.11-pydantic |
| Red Hat | satellite:6 | deferred | python3.12-pydanticpkg:rpm/redhat/python3.12-pydantic |
How do I fix CVE-2026-133422?
Upgrade to a fixed version.
Is CVE-2026-133422 being exploited?
There is no known exploitation of CVE-2026-133422 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-133422, GHSA-49g6-96jj-f7r9.