{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2015-2317","id":"CVE-2015-2317","title":"Django cross-site scripting (XSS) attack via user-supplied redirect URLs","description":"The utils.http.is_safe_url function in Django before 1.4.20, 1.5.x, 1.6.x before 1.6.11, 1.7.x before 1.7.7, and 1.8.x before 1.8c1 does not properly validate URLs, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a control character in a URL, as demonstrated by a \\x08javascript: URL.","descriptionLong":"The utils.http.is_safe_url function in Django before 1.4.20, 1.5.x, 1.6.x before 1.6.11, 1.7.x before 1.7.7, and 1.8.x before 1.8c1 does not properly validate URLs, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a control character in a URL, as demonstrated by a \\x08javascript: URL.","published":"2015-03-25T14:00:00.000Z","updated":"2026-06-17T00:23:54.803Z","reserved":"2015-03-17T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},"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.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/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.4.20",">=1.5 <1.6.11",">=1.7 <1.7.7",">=1.8a1 <1.8c1",">=1.8a0 <1.8c1"],"fixed":["1.4.20","1.6.11","1.7.7","1.8c1"],"advisory":"GHSA-7fq8-4pv5-5w5c"}],"cwes":["CWE-79"],"aliases":["GHSA-7fq8-4pv5-5w5c","PYSEC-2015-9"],"references":[{"url":"http://ubuntu.com/usn/usn-2539-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory","web"]},{"url":"http://www.securityfocus.com/bid/73319","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"http://www.debian.org/security/2015/dsa-3204","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-April/155421.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Third Party Advisory","advisory","web"]},{"url":"http://lists.opensuse.org/opensuse-updates/2015-09/msg00035.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"http://www.oracle.com/technetwork/topics/security/bulletinapr2015-2511959.html","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2015:195","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","Broken Link","advisory","web"]},{"url":"http://lists.opensuse.org/opensuse-updates/2015-04/msg00001.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Third Party Advisory","advisory","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-June/160263.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://www.djangoproject.com/weblog/2015/mar/18/security-releases/","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","article"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-2317","tags":["advisory"]},{"url":"https://github.com/django/django/commit/2342693b31f740a422abf7267c53b4e7bc487c1b","tags":["web"]},{"url":"https://github.com/django/django/commit/2a4113dbd532ce952308992633d802dc169a75f1","tags":["web"]},{"url":"https://github.com/django/django/commit/5510f070711540aaa8d3707776cd77494e688ef9","tags":["web"]},{"url":"https://github.com/django/django/commit/770427c2896a078925abfca2317486b284d22f04","tags":["web"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-9.yaml","tags":["web"]},{"url":"https://web.archive.org/web/20200228131706/http://www.securityfocus.com/bid/73319","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2015/mar/18/security-releases","tags":["web"]},{"url":"https://github.com/advisories/GHSA-7fq8-4pv5-5w5c","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0499,"epssPercentile":0.92387,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2015-2317","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2015-2317","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2015-2317","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-7fq8-4pv5-5w5c","ok":true,"note":"GHSA-7fq8-4pv5-5w5c"},{"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-2015-2317","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["django"],"critical":[],"attention":null}