ADVISORIES

GitHub Advisory Database

GHSA-fjq3-5pxw-4wj4

Cross-Site Request Forgery in Webargs

Details

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

EcosystemPackageAffected versions
PyPIwebargs
From 5.0.0 before 5.5.3 (fixed in 5.5.3)
PyPIwebargs
From 6.0.0b1 before 6.0.0b4 (fixed in 6.0.0b4)

References