CVE-2020-7965 is a high-severity (CVSS 8.8) Cross-Site Request Forgery (CSRF) vulnerability in webargs. A fix is available for webargs — see the affected versions and patch details below.
Cross-Site Request Forgery in Webargs
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2020-7965 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 385,738 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
webargs🐍webargsReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | webargs | ≥ 5.0.0&&< 5.5.3 | 5.5.3pip install --upgrade 'webargs==5.5.3' |
| 🐍PyPI | webargs | ≥ 6.0.0b1&&< 6.0.0b4 | 6.0.0b4pip install --upgrade 'webargs==6.0.0b4' |
Affected Products
webargswebargs_projectDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for webargs, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update webargs to 5.5.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-7965 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2020-7965 in your dependencies?
Find it across PyPI, including transitive dependencies.