CVE-2026-133424Pydantic improper input validation
CVSS score
6.3
Medium
CVSS 4.0 from 7cec5f2f-3032-4006-8740-31f605ffab5f
Exploit probability (EPSS)
0.87%
0.87% chance of exploitation in the next 30 days, higher than 59.6% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
When extra data is allowed, providing both the alias and the name of an aliased TypedDict or dataclass field makes the unvalidated value (provided under the name) overwrite the validated one (provided under the alias), resulting in validated data not matching the declared type.
Extra items are stored in the same dictionary as the fields (the returned dictionary for TypedDict, the instance __dict__ for dataclasses). As only the alias is marked as used, the field name is treated as an extra item, and its unvalidated value overrides the validated one. The TypedDict validator (pydantic-core/src/validators/typed_dict.rs) and the dataclass validator (pydantic-core/src/validators/dataclass.rs) share this logic.
The issue was fixed in commit 34491f5328f168f14e3769cd5f0f83c0af0f4778.
Impact: validation bypass, as data returned by validation doesn't match the declared type. Affected are applications validating untrusted data into TypedDict or dataclass types with aliased fields and extra data allowed (with extra='allow', or with the extra_items argument for TypedDict), using Pydantic V2 (up to and including 2.14.1).
Pydantic models (BaseModel) are not affected, as extra data is stored separately from fields.
Source: NVD · CNA: 7cec5f2f-3032-4006-8740-31f605ffab5f
How to fix it, step by step
Check whether you're affected
Find every system running Pydantic and compare its version with the affected versions.
Update to a fixed version
- Update Pydantic to 2.14.2 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- Present
- Privileges required
- None
- User interaction
- None
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Affected products
| Affected products | Versions |
|---|---|
| pydantic Pydantic | ≥ 2.0, < 2.14.2 |
Weakness
- CWE-20 improper input validation
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-133424 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.9% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-133424?
CVE-2026-133424 has a CVSS 4.0 base score of 6.3 (medium).
Which versions are affected?
Pydantic Pydantic (≥ 2.0, < 2.14.2)
Is there a patch for CVE-2026-133424?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/dataclass.rs#L215-L342
- github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/typed_dict.rs#L204-L225
- github.com/pydantic/pydantic/commit/34491f5328f168f14e3769cd5f0f83c0af0f4778
- github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.