High severity · published Jan 29, 2020
CVE-2020-7965
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
8.8
CVSS
0.6%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 49% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
WE
Webargs · Webargs Project
5.0.0 through 5.5.2 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2020-7965
CVE.org
https://www.cve.org/CVERecord?id=CVE-2020-7965
Release Notes
https://webargs.readthedocs.io/en/latest/changelog.html
More from Webargs
8.1
CVE-2019-9710
An issue was discovered in webargs before 5.1.3, as used with marshmallow and other products
