webargs
Affected
- introduced
5.0.0, fixed5.5.3(ecosystem)
Fixed versions
5.5.3
Fix
- Fixed version
5.5.3pip install --upgrade webargs==5.5.3
Advisory
Also known as: CVE-2020-7965, PYSEC-2020-156
Cross-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.
High Basis: The source's own band: HIGH
5.0.0, fixed 5.5.3 (ecosystem)5.5.3
5.5.3pip install --upgrade webargs==5.5.36.0.0b1, fixed 6.0.0b4 (ecosystem)6.0.0b4
6.0.0b4pip install --upgrade webargs==6.0.0b4Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0