Improper input validation in Django REST Framework
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 2 fixed, 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Django REST Framework | All django-rest-framework versions before 3.12.0 and before 3.11.2 | — | No fix listed | CNA |
| — | djangorestframework (PyPI) | before 3.11.2 | 3.11.2 | Patch available | GHSA-fx83-3ph3-9j2q |
- Django REST Framework Vendor— Affected All django-rest-framework versions before 3.12.0 and before 3.11.2 Fixed in — No fix listed CNA
- djangorestframework (PyPI) Vendor— Affected before 3.11.2 Fixed in 3.11.2 Patch available GHSA-fx83-3ph3-9j2q
Remediation
- Fix · GHSA-fx83-3ph3-9j2q djangorestframework (PyPI) Fixed in 3.11.2 Advisory →
Red Hat 2 advisories
- RHSA-2020:4137 Released 2020-09-30 · Red Hat rating Moderatesecurity update - Red Hat Ansible Tower 3.6.6-1 - RHEL7 Container
- Red Hat Ansible Tower 3.6 for RHEL 7 ansible-tower-36/ansible-tower
- RHSA-2020:4136 Released 2020-09-30 · Red Hat rating Moderatesecurity update - Red Hat Ansible Tower 3.7.3-1 - RHEL7 Container
- Red Hat Ansible Tower 3.7 for RHEL 7 ansible-tower-37/ansible-tower-rhel7
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ceph Storage 2 | Affected | No fix planned: Out of support scope |
| Red Hat Ansible Tower 3.6 for RHEL 7 | Fixed | RHSA-2020:4137 |
| Red Hat Ansible Tower 3.7 for RHEL 7 | Fixed | RHSA-2020:4136 |
Timeline
- 2026-10-02 Threatist record created from CVE-2020-25626
- 2026-10-03 Alias added: GHSA-fx83-3ph3-9j2q
References
Advisory 5
Sources
- CVE-2020-25626 · CVE Program
- CVE-2020-25626 · NVD
- FIRST EPSS
- GHSA-fx83-3ph3-9j2q · GitHub Advisory Database · CC BY 4.0
- CVE-2020-25626 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences