{"id":"CVE-2020-7965","published":"2020-01-29T14:33:16Z","modified":"2024-08-04T09:48:25Z","title":"flaskparser.py in Webargs 5.x through 5.5.2 doesn't check that the Content-Type header is application/json when…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00606,"percentile":0.4996,"provenance":"source"},"cwes":[],"references":[{"url":"https://webargs.readthedocs.io/en/latest/changelog.html","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.0,"factors":[{"name":"EPSS percentile","points":9.99}]},"affected":[{"ecosystem":"PyPI","package":"webargs","vulnerableRanges":[">=5.0.0, <5.5.3",">=6.0.0b1, <6.0.0b4"],"patched":["5.5.3","6.0.0b4"],"from":["GHSA-fjq3-5pxw-4wj4","PYSEC-2020-156"],"provenance":"source"}],"summary":{"text":"The flaw lies in flaskparser.py in Webargs versions 5.x through 5.5.2, which fails to verify that the Content-Type header is application/json before parsing a request body as JSON.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:22Z"},"euvd":{"id":"EUVD-2020-0240","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-9710","published":"2019-03-12","fixed":"5.1.3","kev":false,"link":{"from":"CVE-2019-9710","to":"CVE-2020-7965","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:webargs","fromFixed":"5.1.3","toFixed":"5.5.3","daysApart":323}]}},{"cve":"CVE-2020-7965","published":"2020-01-29","fixed":"6.0.0b4","kev":false}],"package":"PyPI:webargs"}}