CVE-2020-7965 Cross-Site Request Forgery in Webargs
HighCVSS 8.8
EPSS 0.61%
- Published
- Updated
- Exploit status
- No public exploit known
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 products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi webargs(PyPI) | >= 5.0.0, < 5.5.3 | 5.5.3 |
| pypi webargs(PyPI) | = 5.0.0 | No fix listed |
| pypi webargs(PyPI) | = 5.1.0 | No fix listed |
| pypi webargs(PyPI) | = 5.1.1 | No fix listed |
| pypi webargs(PyPI) | = 5.1.1.post0 | No fix listed |
| pypi webargs(PyPI) | = 5.1.2 | No fix listed |
| pypi webargs(PyPI) | = 5.1.3 | No fix listed |
| pypi webargs(PyPI) | = 5.2.0 | No fix listed |
| pypi webargs(PyPI) | = 5.3.0 | No fix listed |
| pypi webargs(PyPI) | = 5.3.1 | No fix listed |
| pypi webargs(PyPI) | = 5.3.2 | No fix listed |
| pypi webargs(PyPI) | = 5.4.0 | No fix listed |
| pypi webargs(PyPI) | = 5.5.0 | No fix listed |
| pypi webargs(PyPI) | = 5.5.1 | No fix listed |
| pypi webargs(PyPI) | = 5.5.2 | No fix listed |
| pypi webargs(PyPI) | >= 6.0.0b1, < 6.0.0b4 | 6.0.0b4 |
| pypi webargs(PyPI) | = 6.0.0b1 | No fix listed |
| pypi webargs(PyPI) | = 6.0.0b2 | No fix listed |
| pypi webargs(PyPI) | = 6.0.0b3 | No fix listed |
| webargs project webargs | >= 5.0.0, <= 5.5.2 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- github.com
- webargs.readthedocs.io release-notes vendor-advisory
- github.com vendor-advisory