Cross-site request forgery in FastAPI - CVE-2021-32677

 

Cross-site request forgery in FastAPI - CVE-2021-32677

Published: July 5, 2021


Vulnerability identifier: #VU54555
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-32677
CWE-ID: CWE-352
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform cross-site request forgery attacks.

The vulnerability exists due to insufficient validation of the HTTP request origin. A remote attacker can trick the victim to visit a specially crafted web page and perform arbitrary actions on behalf of the victim on the vulnerable website, such as act as a mitigating workaround.


Affected software

FastAPI
Arch Linux
Fedora
Cloud Pak for Security (CP4S)
python-fastapi

How to mitigate CVE-2021-32677

Install update from vendor's website.

FastAPI - update to 0.65.2
Cloud Pak for Security (CP4S) - update to 1.10.7.0
python-fastapi - update to 0.65.2-1.fc34

External References

Related Security Bulletins