Validating an untrusted ISO 8601 duration string into a timedelta field with Pydantic V1 takes quadratic time: an input of a few dozen kilobytes takes seconds to validate. The iso8601_duration_re regular expression used to parse ISO 8601 durations (in pydantic/datetime_parse.py)...
Product
pypi pydantic vulnerabilities
9 published CVES affecting pypi pydantic, from public sources (CVE.org, NVD, CISA KEV, FIRST EPSS, OSV).
- Total
- 9
- Critical
- 0
- High
- 2
- Medium
- 7
- Low
- 0
- Unscored
- 0
- CISA KEV
- 0
Latest pypi pydantic CVEs
Newest publication first
-
MediumCVSS 6.9 EPSS 0.82%
-
MediumCVSS 6.9 EPSS 0.82%
Validating an untrusted list into a field constrained with unique_items=True with Pydantic V1 takes quadratic time: an input of a few hundred kilobytes takes seconds to validate. The ConstrainedList.unique_items_validator validator (in pydantic/types.py) checks each item against...
-
CVE-2026-133424 Validation bypass of aliased fields in TypedDict and dataclasses allowing extra data
PublishedMediumCVSS 6.3 EPSS 0.87%When extra data is allowed, providing both the alias and the name of an aliased TypedDict or dataclass field makes the unvalidated value (provided under the name) overwrite the validated one (provided under the alias), resulting in validated data not matching the declared type. E...
-
MediumCVSS 6.3 EPSS 0.80%
Validating an untrusted string in exponent notation into a Fraction field computes the full power of ten without any bound: an input of a few bytes takes seconds to validate. String inputs are passed to the Fraction constructor. For strings in exponent notation (e.g. '1e8000000')...
-
MediumCVSS 6.3 EPSS 0.86%
Validating an untrusted URL with a long scheme and many hosts into a multi-host URL field (e.g. PostgresDsn) takes quadratic time and memory: an input of about a hundred kilobytes takes around a gigabyte of memory to validate. The parse_multihost_url() function (in pydantic-core/...
-
MediumCVSS 6.3 EPSS 0.87%
When validating JSON data into a model allowing extra data, the keys of extra data aren't validated against the key type annotated on pydantic_extra, resulting in extra data not matching the declared type. This is the case if you define pydantic_extra as e.g. dict[Annotated[str,...
-
MediumCVSS 6.3 EPSS 0.47%
When extra data is allowed (extra=Extra.allow), providing a pydantic_initialised key when validating a Pydantic V1 dataclass makes it considered as already validated, resulting in field values not being validated. The init() method of Pydantic V1 dataclasses stores all the provid...
-
HighCVSS 7.5 EPSS 0.96%
Regular expression denial of service in Pydanic < 2.4.0, < 1.10.13 allows remote attackers to cause denial of service via a crafted email string.
-
HighCVSS 7.5 EPSS 0.98%
Pydantic is a data validation and settings management using Python type hinting. In affected versions passing either 'infinity', 'inf' or float('inf') (or their negatives) to datetime or date fields causes validation to run forever with 100% CPU usage (on one CPU). Pydantic has b...
Sources: CVE.org, NVD, CISA KEV, FIRST EPSS, OSV and public exploit-reference metadata. Product matching comes from the published CVE records. A proof-of-concept means public code exists; it is not evidence of exploitation.