CVE-2021-32677: FastAPI is a web framework for building APIs with Python 3.6+ based on standard Python type hints
CVE-2021-32677 is a high-severity flaw (CVSS 8.2) affecting fastapi, fedora. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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/jso
Why this priority
- High severity
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.2 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.7% (top 46%) |
| CISA exploited list | No |
| Weakness | CWE-352 |
| Published | 2021-06-09 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-32677?
fastapi: upgrade to 0.65.2; fedora: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2021-32677 being exploited?
CVE-2021-32677 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-32677 affect?
CVE-2021-32677 affects fastapi, fedora. Severity is high (CVSS 8.2). 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
How urgent is CVE-2021-32677?
Priority 47/100. High severity; Remotely exploitable, no login, no user action
Software pages
Python vulnerabilities · FastAPI vulnerabilities