Cross-site Scripting (XSS) in Django REST Framework
Moderate severity
GitHub Reviewed
Published
Mar 19, 2021
to the GitHub Advisory Database
•
Updated Sep 20, 2024
Description
Published by the National Vulnerability Database
Sep 30, 2020
Reviewed
Mar 12, 2021
Published to the GitHub Advisory Database
Mar 19, 2021
Last updated
Sep 20, 2024
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.
References