Advisory

PYSEC-2020-156

Also known as: CVE-2020-7965, GHSA-fjq3-5pxw-4wj4

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2020-01-29 15:15 UTC
Modified
2023-11-08 04:04 UTC

Affected packages and fixes

webargs

PyPI · All systems

Affected

  • introduced 5.0.0, fixed 5.5.3 (ecosystem)

Fixed versions

5.5.3

Fix

  • Fixed version 5.5.3
    pip install --upgrade webargs==5.5.3

Fix 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

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences