{"id":"CVE-2018-25045","aliases":["DEBIAN-CVE-2018-25045","DSA-5186-1","EUVD-2022-6453","GHSA-xqcf-hj92-967m","PYSEC-2026-804","UBUNTU-CVE-2018-25045"],"status":"published","title":"Django REST framework XSS Vulnerability","description":"Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.","severity":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00779,"percentile":0.56148,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2022-07-22T00:00:00Z","modified":"2026-10-23T18:03:21Z","fixes":[{"ecosystem":"PyPI","package":"django-rest-framework","fixed_in":["3.9.1"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"djangorestframework","fixed_in":["3.10.2-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"djangorestframework","fixed_in":["3.10.2-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"djangorestframework","fixed_in":["3.10.2-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"django-rest-framework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"djangorestframework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.10.2-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"djangorestframework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.10.2-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"djangorestframework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.10.2-1"}]}]},{"source":"osv","ecosystem":"Debian:10","package":"djangorestframework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-1+deb10u1"}]}],"versions":["3.9.0-1"],"bundled":2},{"source":"osv","ecosystem":"PyPI","package":"django-rest-framework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.1"}]}],"versions":["0.1.0"]},{"source":"osv","ecosystem":"PyPI","package":"django-rest-framework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.1"}]}],"versions":["0.1.0"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"djangorestframework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.3-2","3.3.1-1","3.3.2-1","3.3.2-2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"djangorestframework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.0-2","3.7.7-1"]}],"products":[{"vendor":"django-rest-framework","product":"django_rest_framework"}],"references":[{"url":"https://github.com/encode/django-rest-framework/pull/6191","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"https://github.com/encode/django-rest-framework/pull/6330","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"https://github.com/encode/django-rest-framework/commit/4bb9a3c48427867ef1e46f7dee945a4c25a4f9b8","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-25045","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-xqcf-hj92-967m","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-25045","tags":["advisory"]},{"url":"https://github.com/encode/django-rest-framework","tags":["package"]},{"url":"https://pypi.org/project/django-rest-framework","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2018-25045","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-25045","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-25045","description":"Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.","status":"published","published":"2022-07-23T01:43:37Z","modified":"2024-08-05T12:26:39.674Z","updated_at":"2026-11-02T14:35:01.952568Z"}],"euvd":[{"id":"EUVD-2022-6453","description":"Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.","status":"published","published":"2022-07-23T01:43:37Z","modified":"2024-08-05T12:26:39Z","updated_at":"2026-11-03T02:39:27.400094Z"}],"ghsa":[{"id":"GHSA-xqcf-hj92-967m","title":"Django REST framework XSS Vulnerability","description":"Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.","status":"published","published":"2022-07-24T00:00:33Z","modified":"2023-07-25T20:00:41Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:58.177785Z"}],"nvd":[{"id":"CVE-2018-25045","description":"Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.","status":"published","published":"2022-07-23T02:15:07.267Z","modified":"2026-06-17T01:54:35.713Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:05:00.565712Z"}],"osv":[{"id":"CVE-2018-25045","description":"Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.","status":"published","published":"2022-07-23T02:15:07.267Z","modified":"2026-10-20T10:48:04.674768492Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:09.145458Z"},{"id":"DEBIAN-CVE-2018-25045","description":"Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.","status":"published","published":"2022-07-23T02:15:07.267Z","modified":"2026-10-23T18:03:21.62122085Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:30.867575Z"},{"id":"GHSA-xqcf-hj92-967m","title":"Django REST framework XSS Vulnerability","description":"Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.","status":"published","published":"2022-07-24T00:00:33Z","modified":"2026-07-07T11:56:48.352197084Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:47:00.198893Z"},{"id":"PYSEC-2026-804","title":"Django REST framework XSS Vulnerability","description":"Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.","status":"published","published":"2026-07-06T08:03:31.459915Z","modified":"2026-07-07T11:45:45.020324295Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:52:58.117212Z"},{"id":"UBUNTU-CVE-2018-25045","description":"Django REST framework (aka django-rest-framework) before 3.9.1 allows XSS because the default DRF Browsable API view templates disable autoescaping.","status":"published","published":"2022-07-23T02:15:00Z","modified":"2025-10-24T04:47:20Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:17.91743Z"},{"id":"DSA-5186-1","title":"djangorestframework - security update","status":"published","published":"2022-07-22T00:00:00Z","modified":"2026-03-09T02:10:13.995018Z","updated_at":"2026-11-02T15:46:17.543497Z"}]}}
