CVE-2020-25626: XSS
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.
Other sources
A flaw was found in Django REST Framework. When using the browseable API viewer, DRF 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.
— Red Hat
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2020-25626?
The severity of CVE-2020-25626 is medium with a CVSS score of 6.1.
What is the impact of CVE-2020-25626?
CVE-2020-25626 allows an attacker to inject malicious script tags by exploiting certain strings from user input.
Which versions of Django REST Framework are affected by CVE-2020-25626?
Django REST Framework versions before 3.12.0 and before 3.11.2 are affected by CVE-2020-25626.
How can I fix CVE-2020-25626?
To fix CVE-2020-25626, update Django REST Framework to version 3.12.0 or apply the necessary patches provided by the respective package/source.
Where can I find more information about CVE-2020-25626?
You can find more information about CVE-2020-25626 at the following references: [NVD](https://nvd.nist.gov/vuln/detail/CVE-2020-25626), [Red Hat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=1878635), [NetApp Security Advisory](https://security.netapp.com/advisory/ntap-20201016-0003/).