djangorestframework — security advisory
A flaw was found in Django REST Framework versions before 3.12.0 and before 3.11.2. When using the browseable API viewer, Django REST Framework fails to properly escape certain strings that can come from user input. This allows a user who can control those strings to inject malicious
- Products
- djangorestframework
- Affected versions
- 2.4.3-2, 3.10.2-1, 3.12.1-1, 3.12.4-1, 3.12.4-2, 3.12.4-2.1ubuntu1, 3.12.4-2ubuntu1, 3.14.0-2, 3.15.2-2, 3.16.0-1, 3.16.0-1ubuntu1, 3.16.1-1, 3.16.1-3, 3.16.1-4, 3.17.1+ds1-1, 3.3.1-1, 3.3.2-1, 3.3.2-2, 3.4.0-2, 3.7.7-1, 3.9.0-2
- Fixed versions
- Not specified
- CVEs
- CVE-2020-25626
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:37 UTC · Revision 1
Source evidence
A flaw was found in Django REST Framework versions before 3.12.0 and before 3.11.2. When using the browseable API viewer, Django REST Framework fails to properly escape certain strings that can come from user input. This allows a user who can control those strings to inject malicious
osv:UBUNTU-CVE-2020-25626
djangorestframework
Fixed versions: Not specified
djangorestframework
Fixed versions: Not specified
djangorestframework
Fixed versions: Not specified
djangorestframework
Fixed versions: Not specified
djangorestframework
Fixed versions: Not specified
djangorestframework
Fixed versions: Not specified
djangorestframework
Fixed versions: Not specified
djangorestframework
Fixed versions: Not specified
Complete source record
{
"id": "d329f86d06e39317b563f2bfbd9ca268a9bd2dad173ff21373de73c6225d973e",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2020-25626",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2020-25626",
"summary": "A flaw was found in Django REST Framework versions before 3.12.0 and before 3.11.2. When using the browseable API viewer, Django REST Framework fails to properly escape certain strings that can come from user input. This allows a user who can control those strings to inject malicious",
"evidence": "osv:UBUNTU-CVE-2020-25626",
"products": [
{
"name": {
"value": "djangorestframework",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.4.3-2",
"evidence": "/affected/0/versions"
},
{
"value": "3.3.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "3.3.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "3.3.2-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "djangorestframework",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.4.0-2",
"evidence": "/affected/1/versions"
},
{
"value": "3.7.7-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "djangorestframework",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.9.0-2",
"evidence": "/affected/2/versions"
},
{
"value": "3.10.2-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "djangorestframework",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.12.1-1",
"evidence": "/affected/3/versions"
},
{
"value": "3.12.4-1",
"evidence": "/affected/3/versions"
},
{
"value": "3.12.4-2",
"evidence": "/affected/3/versions"
},
{
"value": "3.12.4-2ubuntu1",
"evidence": "/affected/3/versions"
},
{
"value": "3.12.4-2.1ubuntu1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "djangorestframework",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.14.0-2",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "djangorestframework",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.15.2-2",
"evidence": "/affected/5/versions"
},
{
"value": "3.16.0-1",
"evidence": "/affected/5/versions"
},
{
"value": "3.16.0-1ubuntu1",
"evidence": "/affected/5/versions"
},
{
"value": "3.16.1-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "djangorestframework",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.16.1-3",
"evidence": "/affected/6/versions"
},
{
"value": "3.16.1-4",
"evidence": "/affected/6/versions"
},
{
"value": "3.17.1+ds1-1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "djangorestframework",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.16.1-1",
"evidence": "/affected/7/versions"
},
{
"value": "3.16.1-3",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2020-25626",
"aliases": [
"UBUNTU-CVE-2020-25626"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "djangorestframework",
"purl": "pkg:deb/ubuntu/djangorestframework?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"2.4.3-2",
"3.3.1-1",
"3.3.2-1",
"3.3.2-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25626.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-djangorestframework",
"binary_version": "3.3.2-2"
},
{
"binary_name": "python3-djangorestframework",
"binary_version": "3.3.2-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "djangorestframework",
"purl": "pkg:deb/ubuntu/djangorestframework?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"3.4.0-2",
"3.7.7-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25626.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-djangorestframework",
"binary_version": "3.7.7-1"
},
{
"binary_name": "python3-djangorestframework",
"binary_version": "3.7.7-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "djangorestframework",
"purl": "pkg:deb/ubuntu/djangorestframework?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"3.9.0-2",
"3.10.2-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25626.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-djangorestframework",
"binary_version": "3.10.2-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "djangorestframework",
"purl": "pkg:deb/ubuntu/djangorestframework?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"3.12.1-1",
"3.12.4-1",
"3.12.4-2",
"3.12.4-2ubuntu1",
"3.12.4-2.1ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25626.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-djangorestframework",
"binary_version": "3.12.4-2.1ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "djangorestframework",
"purl": "pkg:deb/ubuntu/djangorestframework?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"3.14.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25626.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-djangorestframework",
"binary_version": "3.14.0-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "djangorestframework",
"purl": "pkg:deb/ubuntu/djangorestframework?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"3.15.2-2",
"3.16.0-1",
"3.16.0-1ubuntu1",
"3.16.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25626.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-djangorestframework",
"binary_version": "3.16.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "djangorestframework",
"purl": "pkg:deb/ubuntu/djangorestframework?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"3.16.1-3",
"3.16.1-4",
"3.17.1+ds1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25626.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-djangorestframework",
"binary_version": "3.17.1+ds1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "djangorestframework",
"purl": "pkg:deb/ubuntu/djangorestframework?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"3.16.1-1",
"3.16.1-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25626.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-djangorestframework",
"binary_version": "3.16.1-3"
}
]
}
}
],
"modified": "2026-10-17T12:55:52.224351290Z",
"provider": "osv",
"upstream": [
"CVE-2020-25626"
],
"references": [
"https://ubuntu.com/security/CVE-2020-25626",
"https://bugzilla.redhat.com/show_bug.cgi?id=1878635",
"https://www.cve.org/CVERecord?id=CVE-2020-25626"
]
},
"related_cves": [
{
"value": "CVE-2020-25626",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 354183,
"published_at": "2020-09-30T20:15:00+00:00"
}