{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2020-25626","id":"CVE-2020-25626","title":"Cross-site Scripting (XSS) in Django REST Framework","description":"A flaw was found in Django REST Framework versions before 3.12.0 and before 3.11.2. When using the browseable API viewer, Django REST Framework fails to properly escape certain strings that can come from user input. This allows a user who can control those strings to inject malicious <script> tags, leading to a cross-site-scripting (XSS) vulnerability.","descriptionLong":"A flaw was found in Django REST Framework versions before 3.12.0 and before 3.11.2. When using the browseable API viewer, Django REST Framework fails to properly escape certain strings that can come from user input. This allows a user who can control those strings to inject malicious <script> tags, leading to a cross-site-scripting (XSS) vulnerability.","published":"2020-09-30T19:24:45.000Z","updated":"2026-10-24T10:30:55.921674604Z","reserved":"2020-09-16T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"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","rating":"medium","source":"NVD"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","rating":"medium","source":"GitHub"},{"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","rating":"medium","source":"NVD"},{"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","rating":"medium","source":"OSV"},{"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","rating":"medium","source":"GitHub"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":["Django REST Framework"],"affectedProducts":[{"vendor":"n/a","product":"Django REST Framework","defaultStatus":null,"versions":[{"status":"affected","version":"All django-rest-framework versions before 3.12.0 and before 3.11.2"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"djangorestframework","purl":"pkg:pypi/djangorestframework","ranges":["<3.11.2"],"fixed":["3.11.2"],"advisory":"GHSA-fx83-3ph3-9j2q"}],"cwes":["CWE-20","CWE-79"],"aliases":["GHSA-fx83-3ph3-9j2q","PYSEC-2020-263"],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1878635","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Vendor Advisory","report","web"]},{"url":"https://security.netapp.com/advisory/ntap-20201016-0003/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.debian.org/security/2022/dsa-5186","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25626","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-fx83-3ph3-9j2q","tags":["advisory"]},{"url":"https://github.com/encode/django-rest-framework","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/djangorestframework/PYSEC-2020-263.yaml","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20201016-0003","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01297,"epssPercentile":0.71013,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2020-25626","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25626","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2020-25626","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-fx83-3ph3-9j2q","ok":true,"note":"GHSA-fx83-3ph3-9j2q"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2020-25626","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["django"],"critical":[],"attention":null}