Django Cross-site Scripting in AdminURLFieldWidget
Moderate severity
GitHub Reviewed
Published
Jun 10, 2019
to the GitHub Advisory Database
•
Updated Sep 20, 2024
Package
Affected versions
>= 1.11a1, < 1.11.21
>= 2.1a1, < 2.1.9
>= 2.2a1, < 2.2.2
Patched versions
1.11.21
2.1.9
2.2.2
Description
Published by the National Vulnerability Database
Jun 3, 2019
Reviewed
Jun 10, 2019
Published to the GitHub Advisory Database
Jun 10, 2019
Last updated
Sep 20, 2024
An issue was discovered in Django 1.11 before 1.11.21, 2.1 before 2.1.9, and 2.2 before 2.2.2. The clickable Current URL value displayed by the AdminURLFieldWidget displays the provided value without validating it as a safe URL. Thus, an unvalidated value stored in the database, or a value provided as a URL query parameter payload, could result in an clickable JavaScript link.
References