CSRF in Webargs Project

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. 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.

Vulnerability class: CSRF (Cross-Site Request Forgery)

EPSS: 0.006 (45.5th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

  • cve@mitre.org (x_refsource_CONFIRM, Release Notes, Vendor Advisory)

Frequently asked questions

What is CVE-2020-7965?
CVE-2020-7965 is a high-severity vulnerability in Webargs Project, classified under Cross-Site Request Forgery (CSRF). CVSS score: 8.8/10. Published 2020-01-29.
How severe is CVE-2020-7965?
High severity. CVSS v3 base score is 8.8 out of 10.