CVE-2020-25626Encode Django Rest Framework
Medium 6.1 No auth needed
Follow: this CVE · Encode · Encode Django Rest Framework We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 70
- Auth required
- No
- Published
- Sep 30, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Django Rest Framework.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | djangorestframework |
< 3.11.2 |
3.11.2 |
pip install "djangorestframework>=3.11.2" |
| PyPI | djangorestframework |
< 3.11.2 |
3.11.2 |
pip install "djangorestframework>=3.11.2" |
Per OSV / GitHub Advisories (GHSA-fx83-3ph3-9j2q, PYSEC-2020-263). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| encode | django_rest_framework | < 3.12.0 |
| redhat | ceph_storage | 2.0 |
| debian | debian_linux | 11.0 |
Official advisories
- python313-djangorestframework-3.18.0-1.1 on GA media · SUSE · openSUSE-SU-2026:11571-1 · Aug 21, 2026 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.redhat.com Issue Tracking Vendor Advisory
- security.netapp.com Third Party Advisory
- www.debian.org Third Party Advisory