PyPI: fastapi

CVE-2021-29510

Safety vulnerability ID: SFTY-20210513-11945

Safety legacy ID: pyup.io-40443

Fastapi 0.65.1 upgrades pydantic pin, to handle CVE-2021-29510.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

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

Advisory

Fastapi 0.65.1 upgrades pydantic pin, to handle CVE-2021-29510.

Affected Package

Affecting fastapi package, versions<0.65.1

Also affects

---

How to Fix

Upgradefastapito0.65.1or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more