{"id":"PYSEC-2026-804","summary":"Django REST framework XSS Vulnerability","details":"Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.","aliases":["CVE-2018-25045","GHSA-xqcf-hj92-967m"],"modified":"2026-07-07T11:45:45.020324295Z","published":"2026-07-06T08:03:31.459915Z","references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-25045"},{"type":"WEB","url":"https://github.com/encode/django-rest-framework/pull/6191"},{"type":"WEB","url":"https://github.com/encode/django-rest-framework/pull/6330"},{"type":"WEB","url":"https://github.com/encode/django-rest-framework/commit/4bb9a3c48427867ef1e46f7dee945a4c25a4f9b8"},{"type":"PACKAGE","url":"https://github.com/encode/django-rest-framework"},{"type":"PACKAGE","url":"https://pypi.org/project/django-rest-framework"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-xqcf-hj92-967m"}],"affected":[{"package":{"name":"django-rest-framework","ecosystem":"PyPI","purl":"pkg:pypi/django-rest-framework"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.1"}]}],"versions":["0.1.0"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/django-rest-framework/PYSEC-2026-804.yaml"}}],"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"}]}