{"id":"UBUNTU-CVE-2020-25626","details":"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 \u003cscript\u003e tags, leading to a cross-site-scripting (XSS) vulnerability.","modified":"2026-05-20T16:04:19.113580138Z","published":"2020-09-30T20:15:00Z","upstream":["CVE-2020-25626"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-25626"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1878635"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-25626"}],"affected":[{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.3-2","3.3.1-1","3.3.2-1","3.3.2-2"],"ecosystem_specific":{"binaries":[{"binary_version":"3.3.2-2","binary_name":"python-djangorestframework"},{"binary_name":"python3-djangorestframework","binary_version":"3.3.2-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25626.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.0-2","3.7.7-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-djangorestframework","binary_version":"3.7.7-1"},{"binary_name":"python3-djangorestframework","binary_version":"3.7.7-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25626.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.9.0-2","3.10.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-djangorestframework","binary_version":"3.10.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25626.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.12.1-1","3.12.4-1","3.12.4-2","3.12.4-2ubuntu1","3.12.4-2.1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-djangorestframework","binary_version":"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"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.14.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-djangorestframework","binary_version":"3.14.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25626.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.15.2-2","3.16.0-1","3.16.0-1ubuntu1","3.16.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-djangorestframework","binary_version":"3.16.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25626.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.16.1-1","3.16.1-3"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-djangorestframework","binary_version":"3.16.1-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25626.json"}}],"schema_version":"1.7.5","severity":[{"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"}]}