CVE-2020-7965

HIGH

webargs 5.0.0-5.5.2 - Cross-Site Request Forgery via JSON Content-Type Bypass

Title source: llm
STIX 2.1

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.

References (1)

Core 1
Core References
Release Notes, Vendor Advisory x_refsource_confirm
https://webargs.readthedocs.io/en/latest/changelog.html

Scores

CVSS v3 8.8
EPSS 0.0049
EPSS Percentile 38.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Details

CWE
CWE-352
Status published
Products (2)
pypi/webargs 5.0.0 - 5.5.3PyPI
webargs_project/webargs 5.0.0 - 5.5.2
Published Jan 29, 2020
Tracked Since Feb 18, 2026