PT-2020-19881 · Marshmallow · Webargs
Published
2020-01-29
·
Updated
2021-04-07
·
CVE-2020-7965
CVSS v3.1
8.8
High
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Webargs versions 5.x through 5.5.2
Description
The issue arises from the failure to verify the Content-Type header as application/json when receiving JSON input. This allows the software to accept valid JSON requests even if the content type is specified as application/x-www-form-urlencoded, enabling JSON POST requests to be made across domains and leading to Cross-Site Request Forgery (CSRF) attacks.
Recommendations
For versions 5.x through 5.5.2, consider updating to a version that includes a fix for this issue, as the current version does not properly validate the Content-Type header for JSON input.
As a temporary workaround, consider restricting access to JSON endpoints to minimize the risk of CSRF attacks until a patch is available.
Fix
CSRF
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Webargs