cve.bz

CVE-2020-7965

8.8 highEPSS 0.6%

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

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.6% chance of exploitation in the next 30 days; higher than 49% of CVEs (scores of 2026-10-31)
CWE
CWE-352
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fjq3-5pxw-4wj4PyPIwebargs>=5.0.0 <5.5.35.5.3
GHSA-fjq3-5pxw-4wj4PyPIwebargs>=6.0.0b1 <6.0.0b46.0.0b4
PYSEC-2020-156PyPIwebargs>=5.0.0 <5.5.35.5.3

References

Check your stackJSON