PT-2017-17595 · Django+2 · Django+2

Published

2017-04-04

·

Updated

2026-01-03

·

CVE-2017-7233

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Django versions 1.10 before 1.10.7 Django versions 1.9 before 1.9.13 Django versions 1.8 before 1.8.18
Description The issue relies on user input to redirect the user to an "on success" URL. The security check for these redirects, namely django.utils.http.is safe url(), considers some numeric URLs "safe" when they shouldn't be, leading to an open redirect vulnerability. Additionally, if a developer relies on is safe url() to provide safe redirect targets and puts such a URL into a link, they could suffer from an XSS attack.
Recommendations For Django versions 1.10 before 1.10.7, update to version 1.10.7 or later. For Django versions 1.9 before 1.9.13, update to version 1.9.13 or later. For Django versions 1.8 before 1.8.18, update to version 1.8.18 or later. As a temporary workaround, consider disabling the use of django.utils.http.is safe url() until a patch is available. Restrict access to links that use is safe url() to minimize the risk of exploitation.

Fix

Open Redirect

Weakness Enumeration

Related Identifiers

ALT-PU-2017-1458
CVE-2017-7233
DLA-885-1
DSA-3835-1
GHSA-37HP-765X-J95X
MGASA-2017-0106
OPENSUSE-SU-2018:0632-1
OPENSUSE-SU-2023:0077-1
OPENSUSE-SU-2024:11205-1
OPENSUSE-SU-2024:13887-1
OPENSUSE-SU-2024:14208-1
OPENSUSE-SU-2026:10005-1
PYSEC-2017-9
RHSA-2017:1445
RHSA-2017:1451
RHSA-2017:1462
RHSA-2017:1470
RHSA-2017:1596
RHSA-2017:3093
RHSA-2018:2927
SUSE-SU-2018:0973-1
SUSE-SU-2018:1102-1
USN-3254-1

Affected Products

Alt Linux
Django
Ubuntu