{"id":"CVE-2018-25045","published":"2022-07-23T01:43:37Z","modified":"2024-08-05T12:26:39Z","title":"Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view…","vendor":null,"product":null,"tier":"tail","description":{"text":"Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00798,"percentile":0.57427,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/encode/django-rest-framework/pull/6191","tags":["x_refsource_MISC"]},{"url":"https://github.com/encode/django-rest-framework/pull/6330","tags":["x_refsource_MISC"]},{"url":"https://github.com/encode/django-rest-framework/commit/4bb9a3c48427867ef1e46f7dee945a4c25a4f9b8","tags":["x_refsource_MISC"]}],"priority":{"score":11.5,"factors":[{"name":"EPSS percentile","points":11.49}]},"affected":[{"ecosystem":"PyPI","package":"django-rest-framework","vulnerableRanges":["<3.9.1"],"patched":["3.9.1"],"from":["GHSA-xqcf-hj92-967m","PYSEC-2026-804"],"provenance":"source"}],"summary":{"text":"Django REST framework (aka django-rest-framework), before version 3.9.1, contains a cross-site scripting flaw in the default Browsable API view templates, which disable autoescaping. An attacker can exploit this through the Browsable API pages, though the source material does not specify the access, authentication, or user-interaction conditions required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:57Z"},"euvd":{"id":"EUVD-2022-6453","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-django-rest-framework-cve-2018-25045","children":[{"from":"CVE-2018-25045","to":"CVE-2024-21520","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["rest_framework/templatetags/rest_framework.py"],"commits":["https://github.com/encode/django-rest-framework/commit/4bb9a3c48427867ef1e46f7dee945a4c25a4f9b8","https://github.com/encode/django-rest-framework/commit/3b41f0124194430da957b119712978fa2266b642"],"basis":"rarely changed file"}]}]}}