{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2017-7233","id":"CVE-2017-7233","title":"Django open redirect and possible XSS attack via user-supplied numeric redirect URLs","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 redirec","descriptionLong":"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.","published":"2017-04-04T17:00:00.000Z","updated":"2026-11-16T10:45:03.994670019Z","reserved":"2017-03-22T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"medium","source":"GitHub"},{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":5.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=1.10a1 <1.10.7",">=1.9a1 <1.9.13",">=1.8a1 <1.8.18",">=1.10 <1.10.7",">=1.9 <1.9.13",">=1.8 <1.8.18"],"fixed":["1.10.7","1.9.13","1.8.18"],"advisory":"GHSA-37hp-765x-j95x"}],"cwes":["CWE-601"],"aliases":["GHSA-37hp-765x-j95x","PYSEC-2017-9"],"references":[{"url":"http://www.securitytracker.com/id/1038177","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred","web"]},{"url":"https://access.redhat.com/errata/RHSA-2017:1596","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"http://www.securityfocus.com/bid/97406","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2017:3093","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"http://www.debian.org/security/2017/dsa-3835","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2017:1445","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2017:1451","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2927","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2017:1470","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://www.djangoproject.com/weblog/2017/apr/04/security-releases/","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","article"]},{"url":"https://access.redhat.com/errata/RHSA-2017:1462","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-7233","tags":["advisory"]},{"url":"https://github.com/django/django/commit/254326cb3682389f55f886804d2c43f7b9f23e4f","tags":["web"]},{"url":"https://github.com/django/django/commit/8339277518c7d8ec280070a780915304654e3b66","tags":["web"]},{"url":"https://github.com/django/django/commit/f824655bc2c50b19d2f202d7640785caabc82787","tags":["web"]},{"url":"https://github.com/advisories/GHSA-37hp-765x-j95x","tags":["advisory"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2017-9.yaml","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2017/apr/04/security-releases","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02404,"epssPercentile":0.84381,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2017-7233","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-7233","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2017-7233","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-37hp-765x-j95x","ok":true,"note":"GHSA-37hp-765x-j95x"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2017-7233","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["django"],"critical":[],"attention":null}