PYSEC-2020-156
Dashboard / Vulnerabilities / PYSEC-2020-156
PYSEC-2020-156
Published: 29 Jan 2020Last Modified: 8 Nov 2023
Aliases:
Summary:
Details: 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: https://webargs.readthedocs.io/en/latest/changelog.html, https://github.com/advisories/GHSA-fjq3-5pxw-4wj4
Affected packages
Package
Name: webargs
Purl: pkg:pypi/webargs
Affected ranges
Type: ECOSYSTEM
Events:
Introduced- 5.0.0
Fixed -5.5.3
Affected versions
5.0.0
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
