Input validation error in pydantic - CVE-2026-133429
Published: November 25, 2026
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
Fedora
python-pydantic
How to mitigate CVE-2026-133429
python-pydantic - update to 1.10.27-1.el9