{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2016-2512","id":"CVE-2016-2512","title":"Django XSS Vulnerability","description":"The utils.http.is_safe_url function in Django before 1.8.10 and 1.9.x before 1.9.3 allows remote attackers to redirect users to arbitrary web sites and conduct phishing attacks or possibly conduct cross-site scripting (XSS) attacks via a URL containing basic authentication, as demonstrated by http://mysite.example.com\\@attacker.com.","descriptionLong":"The utils.http.is_safe_url function in Django before 1.8.10 and 1.9.x before 1.9.3 allows remote attackers to redirect users to arbitrary web sites and conduct phishing attacks or possibly conduct cross-site scripting (XSS) attacks via a URL containing basic authentication, as demonstrated by http://mysite.example.com\\@attacker.com.","published":"2016-04-08T15:00:00.000Z","updated":"2026-10-20T10:47:29.191164268Z","reserved":"2016-02-19T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.0","score":7.4,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N","rating":"high","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:N/SI:H/SA:N","rating":"high","source":"GitHub"},{"version":"3.0","score":7.4,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N","rating":"high","source":"NVD"},{"version":"3.0","score":7.4,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.0","score":7.4,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N","rating":"high","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":"high","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.8.10",">=1.9a1 <1.9.3",">=1.9 <1.9.3"],"fixed":["1.8.10","1.9.3"],"advisory":"GHSA-pw27-w7w4-9qc7"}],"cwes":["CWE-79"],"aliases":["GHSA-pw27-w7w4-9qc7","PYSEC-2016-15"],"references":[{"url":"http://rhn.redhat.com/errata/RHSA-2016-0506.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"http://www.securitytracker.com/id/1035152","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/83879","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-0504.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"http://www.debian.org/security/2016/dsa-3544","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-0502.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"http://www.ubuntu.com/usn/USN-2915-3","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","advisory","web"]},{"url":"http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://www.ubuntu.com/usn/USN-2915-2","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","advisory","web"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-0505.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"http://www.ubuntu.com/usn/USN-2915-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","advisory","web"]},{"url":"https://www.djangoproject.com/weblog/2016/mar/01/security-releases/","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","article"]},{"url":"https://github.com/django/django/commit/c5544d289233f501917e25970c03ed444abbd4f0","tags":["x_refsource_CONFIRM","x_transferred","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-2512","tags":["advisory"]},{"url":"https://github.com/django/django/commit/382ab137312961ad62feb8109d70a5a581fe8350","tags":["web"]},{"url":"https://github.com/django/django/commit/fc6d147a63f89795dbcdecb0559256470fff4380","tags":["web"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2016-15.yaml","tags":["web"]},{"url":"https://web.archive.org/web/20210123090815/http://www.securityfocus.com/bid/83879","tags":["web"]},{"url":"https://web.archive.org/web/20210413200202/http://www.securitytracker.com/id/1035152","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2016/mar/01/security-releases","tags":["web"]},{"url":"https://github.com/advisories/GHSA-pw27-w7w4-9qc7","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.04053,"epssPercentile":0.9085,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2016-2512","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-2512","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2016-2512","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-pw27-w7w4-9qc7","ok":true,"note":"GHSA-pw27-w7w4-9qc7"},{"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-2016-2512","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["django"],"critical":[],"attention":null}