Live threats

All CVEs / Encode

CVE-2020-25626Encode Django Rest Framework

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
1.3%
probability of exploitation in 30 days · percentile 70
Auth required
No
Published
Sep 30, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20, CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django Rest Framework.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI djangorestframework < 3.11.2 3.11.2 pip install "djangorestframework>=3.11.2"
PyPI djangorestframework < 3.11.2 3.11.2 pip install "djangorestframework>=3.11.2"

Per OSV / GitHub Advisories (GHSA-fx83-3ph3-9j2q, PYSEC-2020-263). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
encodedjango_rest_framework< 3.12.0
redhatceph_storage2.0
debiandebian_linux11.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.