VULNERABILITY INTELLIGENCE
CVE-2020-7965
CVSS score8.8 HIGH
EPSS probability0.61%
CISA KEVNot currently listed
Published2020-01-29
Last modified2026-06-17
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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.
Weakness classification
- CWE-352: Cross-Site Request Forgery (CSRF)
Primary references
- cve@mitre.org — Release Notes, Vendor Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Release Notes, Vendor Advisory