PT-2026-152728
CVE-2026-133422
·
Published
2026-11-20
·
Updated
2026-11-20
Description by
CVSS 4.0
6.9
MediumMetricsAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions
Pydantic versions prior to 2.14.2
Description
Validating untrusted lists in fields constrained with
unique items=True (via conlist() or Field()) using Pydantic V1 can lead to a denial of service. The ConstrainedList.unique items validator function in pydantic/types.py performs a quadratic number of comparisons by checking each item against all subsequent items. This results in significant performance degradation where an input of a few hundred kilobytes can take several seconds to validate.Recommendations
Upgrade to version 2.14.2 or later.
For lists containing types other than builtin scalars (such as models or dictionaries), restrict the list size using the
max items constraint. Found an issue in the description? Have something to add? Feel free to write us 👾