CVE-2020-7965
Cross-Site Request Forgery in Webargs
8.8
HIGH
CVSS 3.1
EPSS 0.17%
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.
How to fix CVE-2020-7965
To remediate CVE-2020-7965, upgrade the affected package to a fixed version below.
- —upgrade to 5.5.3 or later
- —upgrade to 5.5.3 or later
Is CVE-2020-7965 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- >= 5.0.0, < 5.5.3
- >= 5.0.0, < 5.5.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |