Vulnerability · Published Jan 29, 2020 · Assigned by mitre
CVE-2020-7965
High 8.8
In plain English
A high-severity security flaw in the webargs package (PyPI). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)8.8High
Exploit odds (30 days)0.6%top 50.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | webargs | 5.5.3 | GHSA-fjq3-5pxw-4wj4 |
| PyPI | webargs | 6.0.0b4 | GHSA-fjq3-5pxw-4wj4 |
| PyPI | webargs | 5.5.3 | PYSEC-2020-156 |
Affected products (as reported)
References
- https://webargs.readthedocs.io/en/latest/changelog.html x_refsource_CONFIRM