VDB
Sign up
MEDIUM6.1

PYSEC-2020-263

Quick fix

PYSEC-2020-263 — djangorestframework: upgrade to the fixed version with the command below.

pip install --upgrade 'djangorestframework>=3.11.2'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/djangorestframework
Introduced in: 0Fixed in: 3.11.2
Fixpip install --upgrade 'djangorestframework>=3.11.2'

References