CVE-2020-25626: Cross-site Scripting (XSS) in Django REST Framework

CVE-2020-25626 · Severity: low · CVSS 3.1 · Published 2020-09-30

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.

Technologies: djangorestframework (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2020-25626 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2020-25626 being exploited in the wild.
How severe is CVE-2020-25626?
Low severity, with a CVSS score of 3.1, published 30 September 2020.
Which products and versions are affected?
djangorestframework (PyPI) ECOSYSTEM:introduced=0,fixed=3.11.2.
Is there a fix for CVE-2020-25626?
Yes. djangorestframework (PyPI): upgrade to 3.11.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2020-25626?
Check whether you run djangorestframework (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • djangorestframework (PyPI): upgrade to 3.11.2 or later
    pip install "djangorestframework>=3.11.2"

Affected products

  • djangorestframework (PyPI) ECOSYSTEM:introduced=0,fixed=3.11.2

Identifiers

  • CVE-2020-25626
  • GHSA-fx83-3ph3-9j2q
  • PYSEC-2020-263

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.