CVE-2020-25626
Encode Django Rest Framework vulnerability
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 products
Django Rest Framework, Ceph Storage, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Encode Django Rest Framework runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugzilla.redhat.com/show_bug.cgi?id=1878635 · Vendor Advisory
- security.netapp.com/advisory/ntap-20201016-0003/ · Third Party Advisory
- www.debian.org/security/2022/dsa-5186 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2020-25626
- github.com/advisories/GHSA-fx83-3ph3-9j2q
- github.com/pypa/advisory-database/tree/main/vulns/djangorestframework/PYSEC-2020-263.yaml
- security.netapp.com/advisory/ntap-20201016-0003
- nvd.nist.gov/vuln/detail/CVE-2020-25626
- cve.org/CVERecord?id=CVE-2020-25626
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.