Django cross-site scripting (XSS) attack via user-supplied redirect URLs
Moderate severity
GitHub Reviewed
Published
May 14, 2022
to the GitHub Advisory Database
•
Updated Sep 18, 2024
Package
Affected versions
< 1.4.20
>= 1.5, < 1.6.11
>= 1.7, < 1.7.7
>= 1.8a1, < 1.8c1
Patched versions
1.4.20
1.6.11
1.7.7
1.8c1
Description
Published by the National Vulnerability Database
Mar 25, 2015
Published to the GitHub Advisory Database
May 14, 2022
Reviewed
Apr 29, 2024
Last updated
Sep 18, 2024
The utils.http.is_safe_url function in Django before 1.4.20, 1.5.x, 1.6.x before 1.6.11, 1.7.x before 1.7.7, and 1.8.x before 1.8c1 does not properly validate URLs, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a control character in a URL, as demonstrated by a \x08javascript: URL.
References