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: Dec 8, 2025Updated at: Dec 8, 2025

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

Upgrade
fastapi
to
0.65.1
or 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.

References

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