All reports
High

Cross-Site Request Forgery in Webargs

Affected versions

Version ranges need review.

Affected versions
>= 5.0.0, < 5.5.3
Fixed version
5.5.3
Affected versions
>= 6.0.0b1, < 6.0.0b4
Fixed version
6.0.0b4
Affected versions
>=5.0.0 <5.5.3
Fixed version
5.5.3

Exploitation

CVE-2020-7965

Probability of exploitation in the next 30 days: 0.61%

FIRST EPSS · 2026-11-18

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.

Links

Credits

  • tmorrell
  • gillarramendi