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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | djangorestframework | 3.12.1-1 | DEBIAN-CVE-2020-25626 |
| Debian:13 | djangorestframework | 3.12.1-1 | DEBIAN-CVE-2020-25626 |
| Debian:14 | djangorestframework | 3.12.1-1 | DEBIAN-CVE-2020-25626 |
| PyPI | djangorestframework | 3.11.2 | GHSA-fx83-3ph3-9j2q |
| PyPI | djangorestframework | 3.11.2 | PYSEC-2020-263 |
| Ubuntu:22.04:LTS | djangorestframework | no fix listed | UBUNTU-CVE-2020-25626 |
| Ubuntu:24.04:LTS | djangorestframework | no fix listed | UBUNTU-CVE-2020-25626 |
| Ubuntu:25.10 | djangorestframework | no fix listed | UBUNTU-CVE-2020-25626 |
| Ubuntu:26.04:LTS | djangorestframework | no fix listed | UBUNTU-CVE-2020-25626 |
| Ubuntu:26.10 | djangorestframework | no fix listed | UBUNTU-CVE-2020-25626 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | Django REST Framework | All django-rest-framework versions before 3.12.0 and before 3.11.2 |
Weakness: CWE-20
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1878635 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20201016-0003/ x_refsource_CONFIRM
- DSA-5186 vendor-advisory, x_refsource_DEBIAN