CVE-2020-25626

django-rest-framework: XSS Vulnerability in API viewer

Published Sep 30, 2020 CVSS 3.1 · 6.1 Medium EPSS 1.3% KEV · Not listed
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 <script> tags, leading to a cross-site-scripting (XSS) vulnerability.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-5186-1 djangorestframework security update
EUVD EUVD EUVD-2020-0073 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.
Github GHSA Github GHSA GHSA-fx83-3ph3-9j2q Cross-site Scripting (XSS) in Django REST Framework
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 4, 2024, 3:40 PM
Reserved
Sep 16, 2020, 12:00 AM
Status
Modified
Published
Sep 30, 2020, 8:15 PM
Modified
Jun 17, 2026, 3:07 AM
Severity
Moderate
Public date
Sep 30, 2020, 12:00 AM