Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. djangorestframework
  4. ›
  5. CVE-2020-25626

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

March 19, 2021 (updated September 20, 2024)

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 tags, leading to a cross-site-scripting (XSS) vulnerability.

References

  • bugzilla.redhat.com/show_bug.cgi?id=1878635
  • github.com/advisories/GHSA-fx83-3ph3-9j2q
  • github.com/encode/django-rest-framework
  • github.com/pypa/advisory-database/tree/main/vulns/djangorestframework/PYSEC-2020-263.yaml
  • nvd.nist.gov/vuln/detail/CVE-2020-25626
  • security.netapp.com/advisory/ntap-20201016-0003
  • www.debian.org/security/2022/dsa-5186

Code Behaviors & Features

Detect and mitigate CVE-2020-25626 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.11.2

Fixed versions

  • 3.11.2

Solution

Upgrade to version 3.11.2 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/djangorestframework/CVE-2020-25626.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:42 +0000.