CVE-2017-7233
MEDIUM6.1EPSS 0.75%python-django - security update
Published: 1/4/2019Modified: 4/28/2026
Description
Django 1.10 before 1.10.7, 1.9 before 1.9.13, and 1.8 before 1.8.18 relies on user input in some cases to redirect the user to an "on success" URL. The security check for these redirects (namely ``django.utils.http.is_safe_url()``) considered some numeric URLs "safe" when they shouldn't be, aka an open redirect vulnerability. Also, 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.
Affected packages (6)
- Alpine/py3-djangofrom 0, < 1.10.7-r0
- Alpine/py-djangofrom 0, < 1.10.7-r0
- Debian/python-djangofrom 0, < 1:1.10.7-1
- Debian/python-djangofrom 0, < 1.4.22-1+deb7u3
- PyPI/django>= 1.10a1, < 1.10.7
- PyPI/django>= 1.10, < 1.10.7, >= 1.9, < 1.9.13, >= 1.8, < 1.8.18
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
References (21)
- ADVISORYhttps://github.com/advisories/GHSA-37hp-765x-j95x
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2017-7233
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2017-7233
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2017-7233
- ADVISORYhttps://www.djangoproject.com/weblog/2017/apr/04/security-releases/
- PATCHhttps://github.com/django/django
- WEBhttps://access.redhat.com/errata/RHSA-2017:1445
- WEBhttps://access.redhat.com/errata/RHSA-2017:1451
- WEBhttps://access.redhat.com/errata/RHSA-2017:1462
- WEBhttps://access.redhat.com/errata/RHSA-2017:1470
- WEBhttps://access.redhat.com/errata/RHSA-2017:1596
- WEBhttps://access.redhat.com/errata/RHSA-2017:3093
- WEBhttps://access.redhat.com/errata/RHSA-2018:2927
- WEBhttps://github.com/django/django/commit/254326cb3682389f55f886804d2c43f7b9f23e4f
- WEBhttps://github.com/django/django/commit/8339277518c7d8ec280070a780915304654e3b66
- WEBhttps://github.com/django/django/commit/f824655bc2c50b19d2f202d7640785caabc82787
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2017-9.yaml
- WEBhttps://www.djangoproject.com/weblog/2017/apr/04/security-releases
- WEBhttp://www.debian.org/security/2017/dsa-3835
- WEBhttp://www.securityfocus.com/bid/97406
- WEBhttp://www.securitytracker.com/id/1038177