logo

CVE-2020-7965 webargs

Package

Manager: pip
Name: webargs
Vulnerable Version: >=5.0.0 <5.5.3 || >=6.0.0b1 <6.0.0b4

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

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

EPSS: 0.00167 pctl0.38323

Details

Cross-Site Request Forgery in Webargs 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.

Metadata

Created: 2021-04-07T21:06:30Z
Modified: 2024-11-19T15:34:04Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/04/GHSA-fjq3-5pxw-4wj4/GHSA-fjq3-5pxw-4wj4.json
CWE IDs: ["CWE-352"]
Alternative ID: GHSA-fjq3-5pxw-4wj4
Finding: F007
Auto approve: 1