SB2026112564 - Multiple vulnerabilities in pydantic
Published: November 25, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 2 vulnerabilities.
1) Input validation error (CVE-ID: CVE-2026-133429)
CWE-ID: CWE-20 - Improper input validation
CVSSv4: 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]
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.
2) Input validation error (CVE-ID: CVE-2026-133424)
CWE-ID: CWE-20 - Improper input validation
CVSSv4: 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]
The vulnerability allows a remote attacker to bypass type validation and cause an application to accept values that do not match the declared field types.
The vulnerability exists due to improper input validation in Pydantic's TypedDict and dataclass validators when extra data is allowed and an extra key collides with the name of an aliased field. A remote attacker can submit input that triggers this collision to overwrite a validated field value with an unvalidated value.
Remediation
Install update from vendor's website.
References
- https://github.com/pydantic/pydantic/security/advisories/GHSA-qpmf-fgh3-ff25
- https://github.com/pydantic/pydantic/commit/4c65dbda9970a488e2ff21c8693fc6f6d70a3358
- https://github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29
- https://github.com/pydantic/pydantic/commit/34491f5328f168f14e3769cd5f0f83c0af0f4778