{"id":"GHSA-xqcf-hj92-967m","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","PYSEC-2026-804"],"modified":"2026-07-07T11:56:48.352197084Z","published":"2022-07-24T00:00:33Z","database_specific":{"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2023-07-25T20:00:40Z","nvd_published_at":"2022-07-23T02:15:00Z"},"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"}],"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/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-xqcf-hj92-967m/GHSA-xqcf-hj92-967m.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}