High

Cross-Site Request Forgery in Webargs

  • Disclosed: 29.01.2020
  • Updated: 11.10.2026 11:20

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) webargs >= 5.0.0, < 5.5.3, >= 6.0.0b1, < 6.0.0b4 5.5.3, 6.0.0b4

References

CVSS score 8.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-352
Platform
Python (PyPI)
Package
webargs
Disclosed
29.01.2020
Updated
11.10.2026 11:20

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2020-156 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-fjq3-5pxw-4wj4 - CC BY 4.0

Vulnerability history: webargs

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
03.2019 01.2020
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2

Disclosures per year

  1. 2019: 1
  2. 2020: 1
  3. 2021: 0
  4. 2022: 0
  5. 2023: 0
  6. 2024: 0
  7. 2025: 0
  8. 2026: 0
  1. Cross-Site Request Forgery in Webargs this entry
    High · 8.8 CVE-2020-7965 >= 5.0.0, < 5.5.3, >= 6.0.0b1, < 6.0.0b4 5.5.3, 6.0.0b4
  2. High · 8.1 CVE-2019-9710 < 5.1.3 5.1.3

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.