All pydantic CVEs — Complete Vulnerability History

pydantic is Python's most popular data validation library, used by FastAPI, SQLModel, and many others. Its main CVE is ReDoS in email validation.

PyPI 100M+ weekly downloads 2 CVEs total

Full CVE history

CVEYearSeverityDescriptionFix
CVE-2021-295102021HIGHDoS via infinite loop in decimal validationFixed 1.8.2
CVE-2024-37722024HIGHReDoS via malicious email addressFixed 2.6.4

Current safe version: 2.6.4

# Before
pydantic==1.10.0
# After
pydantic==2.6.4

Then run: pip install -r requirements.txt

Paste your manifest — get a fixed version with all CVEs patched in seconds.

Open PackageFix →

Free · No signup · No CLI · Runs in your browser

Common questions

Is there a breaking change between pydantic v1 and v2?
Yes — pydantic v2 is a complete rewrite with significant API changes. FastAPI 0.100.0+ supports both. Migration is worthwhile — v2 is 5-50x faster and has better error messages.

Related