CVE-2021-32677Cross-Site Request Forgery in Fastapi

Severity
8.1HIGHNVD
EPSS
0.1%
top 69.20%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedJun 9
Latest updateJun 10

Description

FastAPI is a web framework for building APIs with Python 3.6+ based on standard Python type hints. FastAPI versions lower than 0.65.2 that used cookies for authentication in path operations that received JSON payloads sent by browsers were vulnerable to a Cross-Site Request Forgery (CSRF) attack. In versions lower than 0.65.2, FastAPI would try to read the request payload as JSON even if the content-type header sent was not set to application/json or a compatible JSON media type (e.g. applicatio

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:NExploitability: 2.8 | Impact: 5.2

Affected Packages4 packages

debiandebian/fastapi< fastapi 0.70.0-1 (bookworm)
NVDtiangolo/fastapi< 0.65.2
PyPItiangolo/fastapi< 0.65.2
Debiantiangolo/fastapi< 0.70.0-1+2

Also affects: Fedora 34

Patches

🔴Vulnerability Details

3
GHSA
Cross-Site Request Forgery (CSRF) in FastAPI2021-06-10
OSV
Cross-Site Request Forgery (CSRF) in FastAPI2021-06-10
OSV
CVE-2021-32677: FastAPI is a web framework for building APIs with Python 32021-06-09

📋Vendor Advisories

1
Debian
CVE-2021-32677: fastapi - FastAPI is a web framework for building APIs with Python 3.6+ based on standard ...2021