Live threats

All CVEs / Webargs Project

CVE-2020-7965Webargs Project Webargs

High 8.8 No auth needed

Priority
68
CVSS 3.1
8.8
EPSS
0.6%
probability of exploitation in 30 days · percentile 50
Auth required
No
Published
Jan 29, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-352
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Webargs.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI webargs ≥ 5.0.0 < 5.5.3 5.5.3 pip install "webargs>=5.5.3"
PyPI webargs ≥ 6.0.0b1 < 6.0.0b4 6.0.0b4 pip install "webargs>=6.0.0b4"
PyPI webargs ≥ 5.0.0 < 5.5.3 5.5.3 pip install "webargs>=5.5.3"

Per OSV / GitHub Advisories (GHSA-fjq3-5pxw-4wj4, PYSEC-2020-156). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
webargs_projectwebargs≥ 5.0.0 ≤ 5.5.2

Official sources

References

Links published by the sources. Open them with care.