SB2026112563 - Multiple vulnerabilities in pydantic
Published: November 25, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 3 vulnerabilities.
1) Input validation error (CVE-ID: CVE-2026-133276)
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 field validation and cause applications to accept values that do not match their declared types.
The vulnerability exists due to improper input validation in Pydantic V1 dataclass initialization when extra input fields are allowed to override internal validation state. A remote attacker can submit crafted input to make the dataclass appear already validated and skip its field checks.
2) Inefficient Algorithmic Complexity (CVE-ID: CVE-2026-133422)
CWE-ID: CWE-407 - Inefficient Algorithmic Complexity
CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service through excessive validation work.
The vulnerability exists due to quadratic-time duplicate checking in Pydantic V1's ConstrainedList.unique_items_validator when validating lists with unique_items=True. A remote attacker can submit a large list to an application that applies this constraint to consume CPU time and degrade service availability.
3) Inefficient regular expression complexity (CVE-ID: CVE-2026-133421)
CWE-ID: CWE-1333 - Inefficient Regular Expression Complexity
CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service in applications that validate untrusted input as timedelta values.
The vulnerability exists due to overlapping matches in the ISO 8601 duration regular expression when the validator parses duration strings, causing quadratic backtracking. A remote attacker can submit crafted input to a timedelta field to consume excessive CPU time and degrade service availability.
Remediation
Install update from vendor's website.
References
- https://github.com/pydantic/pydantic/security/advisories/GHSA-r49w-vh47-r4hf
- https://github.com/pydantic/pydantic/commit/b26913fe6
- https://github.com/pydantic/pydantic/security/advisories/GHSA-49g6-96jj-f7r9
- https://github.com/pydantic/pydantic/commit/6ec75e57f277a820ec583e601167f25fe8dc7c87
- https://github.com/pydantic/pydantic/security/advisories/GHSA-jfv7-ghgv-gx4x
- https://github.com/pydantic/pydantic/commit/62791e66a9f8f118e465ed760c9e2ede9ae3055e