Skip to main content
← All vulnerabilities
CVE-2020-7965PYSEC-2020-156GHSA-FJQ3-5PXW-4WJ4

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.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.5.3, 6.0.0b4
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • webargsPyPI

    From 5.0.0 · fixed in 5.5.3

  • webargsPyPI

    From 6.0.0b1 · fixed in 6.0.0b4

References 1

webargs.readthedocs.io