Install
pydantic
Data validation using Python type hints
2.14.4Latest, 19 Nov 2026
1.2BDownloads, last month
0Advisories on the latest
4Advisories, all versions
MITLicence
3KStars
6.8/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| Pydantic regular expression denial of service CVE-2024-3772 | Fixed in 1.10.13, 2.4.0 | 7 Jul 2026 | |
| Moderate | Pydantic regular expression denial of service CVE-2024-3772 | Fixed in 2.4.0, 1.10.13 | 15 Apr 2024 |
| Moderate | Use of "infinity" as an input to datetime and date fields causes infinite loop in pydantic CVE-2021-29510 | Fixed in 1.6.2, 1.8.2, 1.7.4 | 13 May 2021 |
| PYSEC-2021-47 CVE-2021-29510 | Fixed in 1.6.2, 1.7.4, 1.8.2 | 13 May 2021 |
In the news
- Pydantic AI's Browser Egress Policy Missed Four Network APIs dev.to, 2 Dec 2026
- Structured output with JSON, validated with Pydantic - Chat Orders dev.to, 1 Dec 2026
- Dynamic Configuration Validation to Prevent Crash-Looping on Missing Environment Variables: A Pydantic v2 & orjson Post-Mortem dev.to, 28 Nov 2026
- Designing Strict Boundary Validation in Python to Prevent Schema Drift from Pydantic v2 Implicit Type Coercion dev.to, 28 Nov 2026
- Schema-Valid Isn't Correct: Parse LLM Output With Pydantic, Then Let Your Domain Refuse It dev.to, 28 Nov 2026
On Hacker News
- PEP 563, PEP 649 and the future of pydantic and FastAPI 282 points, 150 comments, 15 Apr 2021
- Building your own CLI coding agent with Pydantic-AI 197 points, 40 comments, 28 Aug 2025
- Run structured extraction on documents/images locally with Ollama and Pydantic 170 points, 29 comments, 20 Feb 2025
- Approximating sum types in Python with Pydantic 158 points, 97 comments, 12 Aug 2024
Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.