CVE-2020-25626
MEDIUM 6.1CVSS 3.1Cross-site Scripting (XSS) in Django REST Framework
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.
- Published
- 30 Sep 2020
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-20CWE-79
- Also known as
- GHSA-fx83-3ph3-9j2qPYSEC-2020-263
- Sources
- NVDJSONOSV GHSA-fx83-3ph3-9j2qJSONOSV PYSEC-2020-263JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | encode | django_rest_frameworkcpe:2.3:a:encode:django_rest_framework:*:*:*:*:*:*:*:* |
< 3.12.0 | 3.12.0 |
| NVD | redhat | ceph_storagecpe:2.3:a:redhat:ceph_storage:2.0:*:*:*:*:*:*:* |
= 2.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
= 11.0 | |
| OSV | PyPI | djangorestframework | < 3.11.2 | 3.11.2 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1878635 · Issue Tracking, Vendor Advisory, WEB, REPORT
- https://security.netapp.com/advisory/ntap-20201016-0003/ · Third Party Advisory, WEB, ADVISORY
- https://www.debian.org/security/2022/dsa-5186 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-25626 · ADVISORY
- https://github.com/advisories/GHSA-fx83-3ph3-9j2q · ADVISORY
- https://github.com/encode/django-rest-framework · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/djangorestframework/PYSEC-2020-263.yaml · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 30 Sep 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 30 Sep 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 19 Mar 2021)