{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2018-25045","published":"2022-07-23T02:15:07.267000Z","last_modified":"2026-06-17T01:54:35.713000Z","status":"Modified","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:django-rest-framework:django_rest_framework:*:*:*:*:*:*:*:*","part":"a","vendor":"django-rest-framework","product":"django_rest_framework","version_end_excluding":"3.9.1"}],"cpes_truncated":false,"vendors":["django-rest-framework"],"products":["django-rest-framework/django_rest_framework"],"epss":{"score":0.00798,"percentile":0.53255,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-xqcf-hj92-967m","ecosystem":"PyPI","name":"django-rest-framework","purl":"pkg:pypi/django-rest-framework","ranges":[{"introduced":"0","fixed":"3.9.1"}],"versions":["0.1.0"],"versions_truncated":false},{"advisory":"PYSEC-2026-804","ecosystem":"PyPI","name":"django-rest-framework","purl":"pkg:pypi/django-rest-framework","ranges":[{"introduced":"0","fixed":"3.9.1"}],"versions":["0.1.0"],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2018-25045/","html_en":"/en/cve/CVE-2018-25045/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-25045","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-25045"},"untrusted":{"vendor_name":"Django-rest-framework","product_name":"Django Rest Framework","desc_en":"Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.","affected":[],"references":[{"url":"https://github.com/encode/django-rest-framework/commit/4bb9a3c48427867ef1e46f7dee945a4c25a4f9b8","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/encode/django-rest-framework/pull/6191","tags":["Third Party Advisory"]},{"url":"https://github.com/encode/django-rest-framework/pull/6330","tags":["Third Party Advisory"]}]}}