Advisory

GHSA-fx83-3ph3-9j2q

Also known as: CVE-2020-25626, PYSEC-2020-263

Summary

Cross-site Scripting (XSS) in Django REST Framework

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-03-19 21:32 UTC
Modified
2024-09-20 15:12 UTC

Affected packages and fixes

djangorestframework

PyPI · All systems

Affected

  • introduced 0, fixed 3.11.2 (ecosystem)

Fixed versions

3.11.2

Fix

  • Fixed version 3.11.2
    pip install --upgrade djangorestframework==3.11.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences