{"id":"CVE-2020-7965","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.","aliases":["GHSA-fjq3-5pxw-4wj4","PYSEC-2020-156"],"modified":"2026-03-13T00:43:48.427716Z","published":"2020-01-29T15:15:11.070Z","references":[{"type":"ADVISORY","url":"https://webargs.readthedocs.io/en/latest/changelog.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/marshmallow-code/webargs","events":[{"introduced":"cca430ebe55939a488ceda93a75bfe401228ecb5"},{"last_affected":"f1ae764973b6492e3c69109060c95240b7cc3d41"}],"database_specific":{"versions":[{"introduced":"5.0.0"},{"last_affected":"5.5.2"}]}}],"versions":["5.0.0","5.1.0","5.1.1","5.1.1.post0","5.1.2","5.1.3","5.2.0","5.2.2","5.3.0","5.3.1","5.3.2","5.4.0","5.5.0","5.5.1","5.5.2"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-7965.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}