Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. webargs
  4. ›
  5. CVE-2020-7965

CVE-2020-7965: Cross-Site Request Forgery in Webargs

April 7, 2021 (updated November 19, 2024)

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

  • github.com/advisories/GHSA-fjq3-5pxw-4wj4
  • github.com/marshmallow-code/webargs
  • github.com/marshmallow-code/webargs/commit/b9ee8b0aa668207a363d9fd21d967eeadb975c3e
  • github.com/pypa/advisory-database/tree/main/vulns/webargs/PYSEC-2020-156.yaml
  • nvd.nist.gov/vuln/detail/CVE-2020-7965
  • webargs.readthedocs.io/en/latest/changelog.html
  • webargs.readthedocs.io/en/latest/changelog.html
  • webargs.readthedocs.io/en/latest/changelog.html

Code Behaviors & Features

Detect and mitigate CVE-2020-7965 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 6.0.0b1 before 6.0.0b4, all versions starting from 5.0.0 before 5.5.3

Fixed versions

  • 5.5.3
  • 6.0.0b4

Solution

Upgrade to versions 5.5.3, 6.0.0b4 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

pypi/webargs/CVE-2020-7965.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:13 +0000.