Input validation error in pydantic - CVE-2026-133429

 

Input validation error in pydantic - CVE-2026-133429

Published: November 25, 2026


Vulnerability identifier: #VU170169
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-133429
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to bypass validation of extra JSON keys and cause a model to accept data that violates its declared key constraints.

The vulnerability exists due to improper input validation in validate_json_by_iteration() when processing JSON for models configured to allow extra data, because it validates extra values but does not check their keys against the type declared on __pydantic_extra__. A remote attacker can submit JSON containing extra keys that violate the declared constraints to have those keys accepted.


Affected software

pydantic
Fedora
python-pydantic

How to mitigate CVE-2026-133429

Install security update from vendor's website.

pydantic - update to 2.14.2
python-pydantic - update to 1.10.27-1.el9

External References

Related Security Bulletins