High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-7965
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 06:48 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-7965
Complete source record
{
"id": "8e26473b756513b47c80c9fc1af2e988494f80a9fbff55d17f4082c61454660d",
"url": "https://osv.dev/vulnerability/CVE-2020-7965",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-7965",
"summary": "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.",
"evidence": "osv:CVE-2020-7965",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2020-7965",
"aliases": [
"CVE-2020-7965",
"GHSA-fjq3-5pxw-4wj4",
"PYSEC-2020-156"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/marshmallow-code/webargs",
"type": "GIT",
"events": [
{
"introduced": "cca430ebe55939a488ceda93a75bfe401228ecb5"
},
{
"last_affected": "f1ae764973b6492e3c69109060c95240b7cc3d41"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:webargs_project:webargs:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.0.0"
},
{
"last_affected": "5.5.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"5.5.2",
"5.2.2",
"5.5.1",
"5.5.0",
"5.4.0",
"5.3.2",
"5.3.1",
"5.3.0",
"5.2.0",
"5.1.3",
"5.1.2",
"5.1.1.post0",
"5.1.1",
"5.1.0",
"5.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-7965.json"
}
}
],
"modified": "2026-10-24T10:30:44.838296274Z",
"provider": "osv",
"references": [
"https://webargs.readthedocs.io/en/latest/changelog.html"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-7965",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 435978,
"published_at": "2020-01-29T15:15:11.07+00:00"
}