Vulnerability · Published Sep 30, 2020 · Assigned by redhat

CVE-2020-25626

Medium 6.1

In plain English

A medium-severity improper input validation in Django REST Framework. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 71% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)6.1Medium
Exploit odds (30 days)1.3%top 29.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12djangorestframework3.12.1-1DEBIAN-CVE-2020-25626
Debian:13djangorestframework3.12.1-1DEBIAN-CVE-2020-25626
Debian:14djangorestframework3.12.1-1DEBIAN-CVE-2020-25626
PyPIdjangorestframework3.11.2GHSA-fx83-3ph3-9j2q
PyPIdjangorestframework3.11.2PYSEC-2020-263
Ubuntu:22.04:LTSdjangorestframeworkno fix listedUBUNTU-CVE-2020-25626
Ubuntu:24.04:LTSdjangorestframeworkno fix listedUBUNTU-CVE-2020-25626
Ubuntu:25.10djangorestframeworkno fix listedUBUNTU-CVE-2020-25626
Ubuntu:26.04:LTSdjangorestframeworkno fix listedUBUNTU-CVE-2020-25626
Ubuntu:26.10djangorestframeworkno fix listedUBUNTU-CVE-2020-25626

Affected products (as reported)

VendorProductVersions
n/a Django REST Framework All django-rest-framework versions before 3.12.0 and before 3.11.2

Weakness: CWE-20

References