CVEvulnerability

CVE-2020-7965

8.8 HIGH Published 2020-01-29 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2020-01-29
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
8.8 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0 ([email protected])
6.8 MEDIUM — AV:N/AC:M/Au:N/C:P/I:P/A:P
Weaknesses
CWE-352

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.

Affected configurations

• webargs project webargs (>= 5.0.0 <= 5.5.2)

Related

Weakness · CWE (1)

  • CWE-352 Cross-Site Request Forgery weakness

References