CVE-2020-7965 json
Cross-Site Request Forgery in Webargs
published 6y ago modified 4mo ago also GHSA-fjq3-5pxw-4wj4 , PYSEC-2020-156 , EUVD-2020-0240
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 49%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Is CVE-2020-7965 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
0.61% chance of exploitation in the next 30 days, higher than 49% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | webargs | >=5.0.0, <5.5.3 >=6.0.0b1, <6.0.0b4 |
5.5.3 6.0.0b4 |
Classification
- Weakness
-
- CWE-352 Cross-Site Request Forgery
References
-
github.com
/marshmallow-code/webargs/commit/b9ee8b0aa668207a363d9fd21d967eeadb975c3e
web
-
webargs.readthedocs.io
/en/latest/changelog.html
web, release-notes, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-7965
advisory
-
github.com
/marshmallow-code/webargs
package
-
github.com
/pypa/advisory-database/tree/main/vulns/webargs/PYSEC-2020-156.yaml
web
-
webargs.readthedocs.io
/en/latest/changelog.html#b4-2020-01-28
web
-
webargs.readthedocs.io
/en/latest/changelog.html#id11
web
-
github.com
/advisories/GHSA-fjq3-5pxw-4wj4
advisory
Sources
- CVE List CVE-2020-7965
- GitHub Advisory GHSA-fjq3-5pxw-4wj4
- NVD CVE-2020-7965
- OSV PYSEC-2020-156
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.