CVE-2020-7965
HIGH 8.8CVSS 3.1Cross-Site Request Forgery in Webargs
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.
- Published
- 29 Jan 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-352
- Also known as
- GHSA-fjq3-5pxw-4wj4PYSEC-2020-156
- Sources
- NVDJSONOSV GHSA-fjq3-5pxw-4wj4JSONOSV PYSEC-2020-156JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | webargs_project | webargscpe:2.3:a:webargs_project:webargs:*:*:*:*:*:*:*:* |
>= 5.0.0, <= 5.5.2 | |
| OSV | PyPI | webargs | >= 5.0.0, < 5.5.3 | 5.5.3 |
| OSV | PyPI | webargs | >= 6.0.0b1, < 6.0.0b4 | 6.0.0b4 |
References
- https://webargs.readthedocs.io/en/latest/changelog.html · Release Notes, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-7965 · ADVISORY
- https://github.com/marshmallow-code/webargs/commit/b9ee8b0aa668207a363d9fd21d967eeadb975c3e · WEB
- https://github.com/marshmallow-code/webargs · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/webargs/PYSEC-2020-156.yaml · WEB
- https://webargs.readthedocs.io/en/latest/changelog.html#b4-2020-01-28 · WEB
- https://webargs.readthedocs.io/en/latest/changelog.html#id11 · WEB
- https://github.com/advisories/GHSA-fjq3-5pxw-4wj4 · ADVISORY
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 29 Jan 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jan 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Apr 2021)