{"id":"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.","aliases":["GHSA-fx83-3ph3-9j2q","PYSEC-2020-263"],"modified":"2026-10-24T10:34:52.790035075Z","published":"2020-09-30T20:15:15.480Z","related":["openSUSE-SU-2021:0322-1","openSUSE-SU-2021:0338-1","openSUSE-SU-2024:11227-1","openSUSE-SU-2024:13861-1","openSUSE-SU-2026:11571-1"],"database_specific":{"unresolved_ranges":[{"vendor_product":"debian:debian_linux","cpes":["cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*"],"extracted_events":[{"source":"CPE_STRING","range":[{"introduced":"11.0"},{"last_affected":"11.0"}]}]},{"cpes":["cpe:2.3:a:redhat:ceph_storage:2.0:*:*:*:*:*:*:*"],"extracted_events":[{"range":[{"introduced":"2.0"},{"last_affected":"2.0"}],"source":"CPE_STRING"}],"vendor_product":"redhat:ceph_storage"}]},"references":[{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20201016-0003/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2022/dsa-5186"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1878635"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/encode/django-rest-framework","events":[{"introduced":"0"},{"fixed":"6f7aad8ffa96226672eacb82ab003dcf01070ed3"}],"database_specific":{"extracted_events":[{"source":"CPE_RANGE","cpe":"cpe:2.3:a:encode:django_rest_framework:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"fixed":"3.12.0"}]}]}}],"versions":["3.11.0","3.10.3","3.10.2","3.10.1","3.10.0","3.9.3","3.9.2","3.9.1","3.8.2","3.8.1","3.8.0","3.7.7","3.7.6","3.7.5","3.7.4","3.7.3","3.7.2","3.7.1","3.7.0","3.6.4","3.6.3","3.6.2","3.6.1","3.6.0","3.5.4","3.5.3","3.5.2","3.5.1","3.5.0","3.4.7","3.4.6","3.4.5","3.4.4","3.4.3","3.4.2","3.4.1","3.4.0","3.3.2","3.3.1","3.2.4","3.2.3","3.2.2","3.2.1","3.2.0","3.1.3","3.1.2","3.1.1","3.1.0","3.0.5","3.0.3","3.0.4","3.0.2","3.0.1","3.0.0","2.4.4","2.4.3","2.4.2","2.4.1","2.4.0","2.3.14","2.3.13","2.3.12","2.3.11","2.3.10","2.3.9","2.3.8","2.3.7","2.3.6","2.3.5","2.3.4","2.3.3","2.3.2","2.3.1","2.3.0","2.2.7","2.2.6","2.2.4","2.2.3","2.2.2","2.2.1","2.2.0","2.1.17","2.1.16","2.1.15","2.1.14","2.1.13","2.1.12","2.1.11","2.1.10","2.1.9","2.1.8","2.1.7","2.1.6","2.1.5","2.1.4","2.1.3","2.1.2","2.1.1","2.1.0","2.0.2","2.0.1","2.0.0","0.4.0","0.3.3","0.3.2","0.3.1","0.2.4","0.1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-25626.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}