medium6.1
CVE-2020-25626
Cross-site Scripting (XSS) in Django REST Framework
Impact
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
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | djangorestframework | < 3.11.2 | 3.11.2 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Encode | Django Rest Framework | before 3.12.0 |
| Redhat | Ceph Storage | Version 2.0 |
| Debian | Debian Linux | Version 11.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1878635
- https://security.netapp.com/advisory/ntap-20201016-0003/
- https://www.debian.org/security/2022/dsa-5186
- https://github.com/advisories/GHSA-fx83-3ph3-9j2q
- https://nvd.nist.gov/vuln/detail/CVE-2020-25626
- https://github.com/pypa/advisory-database/tree/main/vulns/djangorestframework/PYSEC-2020-263.yaml
- https://security.netapp.com/advisory/ntap-20201016-0003