fastapi@0.66.1 vulnerabilities

FastAPI framework, high performance, easy to learn, fast to code, ready for production

Direct Vulnerabilities

Known vulnerabilities in the fastapi package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Regular Expression Denial of Service (ReDoS)

fastapi is a web framework for building APIs with Python 3.6+ based on standard Python type hints.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the parsing of the HTTP Content-Type header when reading form data with python-multipart. An attacker can cause a denial of service by sending a specially crafted Content-Type header that leads to excessive CPU consumption and indefinite stalling of the main event loop, preventing the processing of further requests.

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade fastapi to version 0.109.1 or higher.

[,0.109.1)