Package compatibility

Pydantic

Python requirements from PyPI (requires_python / classifiers) for the pydantic package. This is not a lifecycle software page.

Compatibility is derived from PyPI requires_python and Trove classifiers. CompatHub does not independently test every combination.

Version lines

Each line reflects a declared requires_python tip. Requirement changes across tips appear as separate lines when present.

Known vulnerabilities

Recent OSV.dev advisories mapped to this product. CVSS/CWE from NVD and known-exploited status from CISA KEV when available. CompatHub is not the original vulnerability authority.

  • CVE-2024-3772PYSEC-2026-1812

    Pydantic regular expression denial of service

    Affected:
    >=2.0.0,<2.4.0
    Fixed in:
    2.4.0
    Source:
    OSV source · Advisory
  • CVE-2024-3772GHSA-mr82-8j83-vxmv

    Pydantic regular expression denial of service

    Affected:
    <1.10.13; >=2.0.0,<2.4.0
    Fixed in:
    1.10.13, 2.4.0
    Source:
    OSV source · Advisory
  • CVE-2021-29510GHSA-5jqp-qgf6-3pvh

    Use of "infinity" as an input to datetime and date fields causes infinite loop in pydantic

    Affected:
    >=1.8,<1.8.2; <1.6.2; >=1.7,<1.7.4
    Fixed in:
    1.8.2, 1.6.2, 1.7.4
    Source:
    OSV source · Advisory
  • CVE-2021-29510PYSEC-2021-47
    Affected:
    <7e83fdd2563ffac081db7ecdf1affa65ef38c468; >=1.8,<1.8.2
    Fixed in:
    7e83fdd2563ffac081db7ecdf1affa65ef38c468, 1.8.2
    Source:
    OSV source · Advisory