CVE-2020-25626
MEDIUM6.1EPSS 0.71%Cross-site Scripting (XSS) in Django REST Framework
Published: 3/19/2021Modified: 4/28/2026
Also known as:DEBIAN-CVE-2020-25626
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 (3)
- Debian/djangorestframeworkfrom 0, < 3.12.1-1
- PyPI/djangorestframeworkfrom 0, < 3.11.2
- PyPI/djangorestframeworkfrom 0, < 3.11.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
References (9)
- ADVISORYhttps://github.com/advisories/GHSA-fx83-3ph3-9j2q
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2020-25626
- ADVISORYhttps://security.netapp.com/advisory/ntap-20201016-0003/
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2020-25626
- PATCHhttps://github.com/encode/django-rest-framework
- WEBhttps://bugzilla.redhat.com/show_bug.cgi?id=1878635
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/djangorestframework/PYSEC-2020-263.yaml
- WEBhttps://security.netapp.com/advisory/ntap-20201016-0003
- WEBhttps://www.debian.org/security/2022/dsa-5186