{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2020-7965","id":"CVE-2020-7965","title":"Cross-Site Request Forgery in Webargs","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.","descriptionLong":"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.","published":"2020-01-29T14:33:16.000Z","updated":"2026-10-24T10:30:44.838296274Z","reserved":"2020-01-24T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"high","source":"GitHub"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"webargs","purl":"pkg:pypi/webargs","ranges":[">=5.0.0 <5.5.3",">=6.0.0b1 <6.0.0b4"],"fixed":["5.5.3","6.0.0b4"],"advisory":"GHSA-fjq3-5pxw-4wj4"}],"cwes":["CWE-352"],"aliases":["GHSA-fjq3-5pxw-4wj4","PYSEC-2020-156"],"references":[{"url":"https://webargs.readthedocs.io/en/latest/changelog.html","tags":["x_refsource_CONFIRM","x_transferred","Release Notes","Vendor Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7965","tags":["advisory"]},{"url":"https://github.com/marshmallow-code/webargs/commit/b9ee8b0aa668207a363d9fd21d967eeadb975c3e","tags":["web"]},{"url":"https://github.com/marshmallow-code/webargs","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/webargs/PYSEC-2020-156.yaml","tags":["web"]},{"url":"https://webargs.readthedocs.io/en/latest/changelog.html#b4-2020-01-28","tags":["web"]},{"url":"https://webargs.readthedocs.io/en/latest/changelog.html#id11","tags":["web"]},{"url":"https://github.com/advisories/GHSA-fjq3-5pxw-4wj4","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00606,"epssPercentile":0.4976,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2020-7965","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7965","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2020-7965","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-fjq3-5pxw-4wj4","ok":true,"note":"GHSA-fjq3-5pxw-4wj4"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2020-7965","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}