CVE-2020-7965Webargs Project Webargs
High 8.8 No auth needed
Follow: this CVE · Webargs Project · Webargs Project Webargs We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Webargs.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| webargs_project | webargs | ≥ 5.0.0 ≤ 5.5.2 |
Official sources
References
Links published by the sources. Open them with care.
- webargs.readthedocs.io Release Notes Vendor Advisory