GitHub Advisoryadvisory · PyPI

GHSA-fx83-3ph3-9j2q Cross-site Scripting (XSS) in Django REST Framework

MEDIUM Published 2021-03-19 Modified 2024-09-20 Official page ↗
Aliases
CVE-2020-25626
Ecosystem
PyPI
Packages
djangorestframework
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-20, CWE-79
Reviewed
2021-03-12

Affected packages

• PyPI djangorestframework: < 3.11.2 → fixed in 3.11.2

Description

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.

Related

Alias · CVE (1)

  • CVE-2020-25626 A flaw was found in Django REST Framework versions before 3.12.0 and before 3.11.2. vulnerability

Weakness · CWE (2)

  • CWE-20 Improper Input Validation weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References