{"id":"UBUNTU-CVE-2018-25045","details":"Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.","modified":"2025-10-24T04:47:20Z","published":"2022-07-23T02:15:00Z","upstream":["CVE-2018-25045"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-25045"},{"type":"REPORT","url":"https://github.com/encode/django-rest-framework/commit/4bb9a3c48427867ef1e46f7dee945a4c25a4f9b8"},{"type":"REPORT","url":"https://github.com/encode/django-rest-framework/pull/6191"},{"type":"REPORT","url":"https://github.com/encode/django-rest-framework/pull/6330"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-25045"}],"affected":[{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework@3.3.2-2?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_name":"python-djangorestframework","binary_version":"3.3.2-2"},{"binary_name":"python3-djangorestframework","binary_version":"3.3.2-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-25045.json"}},{"package":{"name":"djangorestframework","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/djangorestframework@3.7.7-1?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/2018/UBUNTU-CVE-2018-25045.json"}}],"schema_version":"1.7.3","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"}]}