CVE-2017-7233
Django open redirect and possible XSS attack via user-supplied numeric redirect URLs
Reported by mitre · Published April 4, 2017
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| alpine | py3-django | 0 |
| PyPI | Django | 1.8a1, 1.10a1, 1.9a1 |
| alpine | py-django | 0, 0 |
| arch | python-django | 0 |
Timeline
- Apr 4, 2017 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 6, 2026 Distribution Patch (9 in total, the first dated here)
- Mar 6, 2026 Security Advisory (11 in total, the first dated here)
- Sep 28, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-7233
vulnetix vdb fixes CVE-2017-7233
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-7233/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 1038177 vdb-entryx_refsource_SECTRACK
- RHSA-2017:1596 vendor-advisoryx_refsource_REDHAT
- 97406 vdb-entryx_refsource_BID
- RHSA-2017:3093 vendor-advisoryx_refsource_REDHAT
- DSA-3835 vendor-advisoryx_refsource_DEBIAN
- RHSA-2017:1445 vendor-advisoryx_refsource_REDHAT
- RHSA-2017:1451 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:2927 vendor-advisoryx_refsource_REDHAT
- RHSA-2017:1470 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- RHSA-2017:1462 vendor-advisoryx_refsource_REDHAT
- https://nvd.nist.gov/vuln/detail/CVE-2017-7233 advisory
- https://github.com/advisories/GHSA-37hp-765x-j95x advisory
- https://github.com/django/django/commit/254326cb3682389f55f886804d2c43f7b9f23e4f patch
- https://github.com/django/django/commit/8339277518c7d8ec280070a780915304654e3b66 patch
- https://github.com/django/django/commit/f824655bc2c50b19d2f202d7640785caabc82787 patch
- https://github.com/django/django url
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2017-9.yaml advisory
- https://www.djangoproject.com/weblog/2017/apr/04/security-releases url