Skip to content
OpenAdvisories
High · 8.8 CVE-2020-7965 EUVD-2020-0240GHSA-fjq3-5pxw-4wj4PYSEC-2020-156

Cross-Site Request Forgery in Webargs

Published Jan 29, 2020 · Updated Aug 4, 2024 · Assigned by mitre

Description

flaskparser.py in Webargs 5.x through 5.5.2 doesn't check that the Content-Type header is application/json when receiving JSON input. If the request body is valid JSON, it will accept it even if the content type is application/x-www-form-urlencoded. This allows for JSON POST requests to be made across domains, leading to CSRF.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI webargs >= 5.0.0, < 5.5.3 5.5.3 GHSA-fjq3-5pxw-4wj4
PyPI webargs >= 6.0.0b1, < 6.0.0b4 6.0.0b4 GHSA-fjq3-5pxw-4wj4

References