{"cve":"CVE-2018-25045","nvd":{"published":"2022-07-23T02:15:07.267","modified":"2026-06-17T01:54:35.713","status":"Modified","description":"Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/encode/django-rest-framework/commit/4bb9a3c48427867ef1e46f7dee945a4c25a4f9b8","https://github.com/encode/django-rest-framework/pull/6191","https://github.com/encode/django-rest-framework/pull/6330","https://github.com/encode/django-rest-framework/commit/4bb9a3c48427867ef1e46f7dee945a4c25a4f9b8","https://github.com/encode/django-rest-framework/pull/6191"],"products":["django-rest-framework:django_rest_framework"],"source":"nvd","synced_at":"2026-10-19T21:33:44.859608815+00:00"},"epss":{"cve":"CVE-2018-25045","score":0.00779,"percentile":0.55911,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-xqcf-hj92-967m","url":"https://osv.dev/vulnerability/GHSA-xqcf-hj92-967m","summary":"Django REST framework XSS Vulnerability","modified":"2026-07-07T11:56:48.352197084Z","packages":[{"ecosystem":"PyPI","name":"django-rest-framework","purl":"pkg:pypi/django-rest-framework","ranges":["<3.9.1"],"fixed":["3.9.1"]}]},{"id":"PYSEC-2026-804","url":"https://osv.dev/vulnerability/PYSEC-2026-804","summary":"Django REST framework XSS Vulnerability","modified":"2026-07-07T11:45:45.020324295Z","packages":[{"ecosystem":"PyPI","name":"django-rest-framework","purl":"pkg:pypi/django-rest-framework","ranges":["<3.9.1"],"fixed":["3.9.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}