{"schemaVersion":3,"id":"CVE-2020-25626","aliases":["openSUSE-SU-2021:0338-1","GHSA-fx83-3ph3-9j2q","PYSEC-2020-263","UBUNTU-CVE-2020-25626","DEBIAN-CVE-2020-25626","openSUSE-SU-2021:0322-1","openSUSE-SU-2026:11571-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2020-09-30T19:24:45.000Z","modified":"2024-08-04T15:40:35.425Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.1,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":5.3,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","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","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","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","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","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","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01297,"percentile":0.69988,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.011000000000000072,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01286},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01297,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01297,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01297,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01297,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01297,"percentile":0.69988}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01286,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01297,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01297,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01297,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01297,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01297,"percentile":0.69988}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"debian","product":"djangorestframework","name":"djangorestframework","label":"djangorestframework","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/djangorestframework","purlType":"deb","versions":[{"text":"< 3.12.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.12.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"djangorestframework","name":"djangorestframework","label":"djangorestframework","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/djangorestframework","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"11.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"11.0","eol":{"isEol":true,"eolDate":"2026-08-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"11","label":"11 (Bullseye)","eolFrom":"2026-08-31T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"11.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"encode","product":"django_rest_framework","name":"django rest framework","label":"django_rest_framework","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.12.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.12.0","eol":null,"hubHref":"/vendor/encode/django_rest_framework"},{"vendor":"PyPI","product":"djangorestframework","name":"djangorestframework","label":"djangorestframework","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/djangorestframework","purlType":"pypi","versions":[{"text":"< 3.11.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.11.2","eol":null,"hubHref":null},{"vendor":"redhat","product":"ceph_storage","name":"ceph storage","label":"ceph_storage","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.0","eol":null,"hubHref":"/vendor/redhat/ceph_storage"},{"vendor":"opensuse","product":"python-djangorestframework-test&distro=openSUSE Leap 15.2","name":"python-djangorestframework-test","label":"python-djangorestframework-test&distro=openSUSE Leap 15.2","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/python-djangorestframework-test&distro=openSUSE Leap 15.2","purlType":"rpm","versions":[{"text":"< 3.11.2-lp152.2.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.11.2-lp152.2.3.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"python-djangorestframework&distro=openSUSE Leap 15.2","name":"python-djangorestframework","label":"python-djangorestframework&distro=openSUSE Leap 15.2","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/python-djangorestframework&distro=openSUSE Leap 15.2","purlType":"rpm","versions":[{"text":"< 3.11.2-lp152.2.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.11.2-lp152.2.3.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"python-djangorestframework&distro=openSUSE Tumbleweed","name":"python-djangorestframework","label":"python-djangorestframework&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/python-djangorestframework&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 3.18.0-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.18.0-1.1","eol":null,"hubHref":null},{"vendor":"suse","product":"python-djangorestframework-test&distro=SUSE Package Hub 15 SP2","name":"python-djangorestframework-test","label":"python-djangorestframework-test&distro=SUSE Package Hub 15 SP2","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/python-djangorestframework-test&distro=SUSE Package Hub 15 SP2","purlType":"rpm","versions":[{"text":"< 3.11.2-bp152.2.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.11.2-bp152.2.3.1","eol":null,"hubHref":null},{"vendor":"suse","product":"python-djangorestframework&distro=SUSE Package Hub 15 SP2","name":"python-djangorestframework","label":"python-djangorestframework&distro=SUSE Package Hub 15 SP2","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/python-djangorestframework&distro=SUSE Package Hub 15 SP2","purlType":"rpm","versions":[{"text":"< 3.11.2-bp152.2.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.11.2-bp152.2.3.1","eol":null,"hubHref":null}],"affectedCount":11,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1878635","label":"bugzilla.redhat.com/show_bug.cgi?id=1878635","hostname":"bugzilla.redhat.com","tags":["X Refsource MISC","WEB","REPORT","Issue Tracking","Vendor Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20201016-0003/","label":"security.netapp.com/advisory/ntap-20201016-0003/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Advisory","Third Party Advisory"]},{"url":"https://www.debian.org/security/2022/dsa-5186","label":"www.debian.org/security/2022/dsa-5186","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","WEB","Third Party Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/7NYNAEPY3UVCIEUTPMQBXFJ42XJG7RVG/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1177205","label":"bugzilla.suse.com/1177205","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2020-25626","label":"www.suse.com/security/cve/CVE-2020-25626","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25626","label":"nvd.nist.gov/vuln/detail/CVE-2020-25626","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/advisories/GHSA-fx83-3ph3-9j2q","label":"github.com/advisories/GHSA-fx83-3ph3-9j2q","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/encode/django-rest-framework","label":"github.com/encode/django-rest-framework","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/djangorestframework/PYSEC-2020-263.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/djangorestframework/PYSEC-2020-263.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://security.netapp.com/advisory/ntap-20201016-0003","label":"security.netapp.com/advisory/ntap-20201016-0003","hostname":"security.netapp.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2020-25626","label":"ubuntu.com/security/CVE-2020-25626","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-25626","label":"www.cve.org/CVERecord?id=CVE-2020-25626","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-25626","label":"security-tracker.debian.org/tracker/CVE-2020-25626","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/R3GZDKNNVOILNHAK6KSWOYM6URRERTB4/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-5186-1"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2020-09-30T19:24:45.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T15:40:35.425Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":25,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T22:00:49.227Z","stale":false,"partial":false}}