CVE-2020-7965

Published Jan 29, 2020 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2020-0240 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.
Github GHSA Github GHSA GHSA-fjq3-5pxw-4wj4 Cross-Site Request Forgery in Webargs
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 9:48 AM
Reserved
Jan 24, 2020, 12:00 AM
Status
Modified
Published
Jan 29, 2020, 3:15 PM
Modified
Jun 17, 2026, 3:25 AM