CVE-2020-7965Published Jan 29, 2020 · Jan 29Updated Oct 24
Cross-Site Request Forgery in Webargs
High8.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| webargs PyPI |
|
|
Original 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.
From the CVE record · mitre