Vulnerability Name:

CVE-2020-25626 (CCN-189365)

Assigned:2020-09-30
Published:2020-09-30
Updated:2022-09-28
Summary: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.
CVSS v3 Severity:6.1 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
5.8 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:H/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): None
7.2 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N)
6.9 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N/E:H/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): None
CVSS v2 Severity:4.3 Medium (CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): None
6.4 Medium (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): None
Vulnerability Type:CWE-79
Vulnerability Consequences:Cross-Site Scripting
References:Source: MITRE
Type: CNA
CVE-2020-25626

Source: CCN
Type: Red Hat Bugzilla – Bug 1878635
(CVE-2020-25626) - CVE-2020-25626 django-rest-framework: XSS Vulnerability in API viewer

Source: MISC
Type: Issue Tracking, Vendor Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=1878635

Source: XF
Type: UNKNOWN
django-cve202025626-xss(189365)

Source: CONFIRM
Type: Third Party Advisory
https://security.netapp.com/advisory/ntap-20201016-0003/

Source: DEBIAN
Type: Third Party Advisory
DSA-5186

Source: CCN
Type: Django Web site
Django REST framework is a powerful and flexible toolkit for building Web APIs.

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2020-25626

Vulnerable Configuration:Configuration 1:
  • cpe:/a:encode:django_rest_framework:*:*:*:*:*:*:*:* (Version < 3.12.0)

  • Configuration 2:
  • cpe:/a:redhat:ceph_storage:2.0:*:*:*:*:*:*:*

  • Configuration 3:
  • cpe:/o:debian:debian_linux:11.0:*:*:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:encode:django_rest_framework:3.11.0:*:*:*:*:*:*:*
  • OR cpe:/a:encode:django_rest_framework:3.11.1:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:113263
    P
    python36-djangorestframework-3.12.4-1.2 on GA media (Moderate)
    2022-01-17
    oval:org.opensuse.security:def:106675
    P
    python36-djangorestframework-3.12.4-1.2 on GA media (Moderate)
    2021-10-01
    oval:org.opensuse.security:def:11182
    P
    Security update for python-djangorestframework (Important)
    2021-02-25
    oval:org.opensuse.security:def:96451
    P
    Security update for python-djangorestframework (Important)
    2021-02-25
    oval:org.opensuse.security:def:103141
    P
    Security update for python-djangorestframework (Important)
    2021-02-25
    oval:org.opensuse.security:def:109798
    P
    Security update for python-djangorestframework (Important)
    2021-02-25
    oval:org.opensuse.security:def:111230
    P
    Security update for python-djangorestframework (Important)
    2021-02-21
    BACK
    encode django rest framework *
    redhat ceph storage 2.0
    debian debian linux 11.0
    encode django rest framework 3.11.0
    encode django rest framework 3.11.1