CVE-2026-133422
Last modified
CVE-2026-133422 is a medium-severity vulnerability rated 6.9/10 on the CVSS scale. 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. EPSS estimates a 0.82% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| pydantic | pydantic | >= 1.9.0, <= 1.10.26 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-133422?
How severe is CVE-2026-133422?
How do I fix CVE-2026-133422?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-133413A vulnerability was detected in smartalock wireguard-lwip up…3.4
- CVE-2026-133414A security flaw has been discovered in sofastack sofa-bolt u…5.3
- CVE-2026-133415A vulnerability has been found in sumiie24 School-Management…7.3
- CVE-2026-133419The UiChemy – Convert Figma, Prompts and AI Builds to Elemen…6.4
- CVE-2026-13342The Security Optimizer WordPress plugin from 1.5.8 to 1.6.4 …5.3
- CVE-2026-133421Validating an untrusted ISO 8601 duration string into a time…6.9
- CVE-2026-133424When extra data is allowed, providing both the alias and the…6.3
- CVE-2026-133426Validating an untrusted string in exponent notation into a F…6.3
- CVE-2026-133428Validating an untrusted URL with a long scheme and many host…6.3
- CVE-2026-133429When validating JSON data into a model allowing extra data, …6.3
- CVE-2026-13343The UMP Stream responder library in lib/midi2/ump_stream_res…5.3
- CVE-2026-133430A flaw was found in Keycloak. This vulnerability allows an a…5.4
Are you affected by CVE-2026-133422?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
