High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-2512
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 09:39 UTC · Revision 1
Source evidence
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.
osv:CVE-2016-2512
Complete source record
{
"id": "053fc75c276cadd872ce37046fa3b9721101d363e554686f00552e6aa294bdfc",
"url": "https://osv.dev/vulnerability/CVE-2016-2512",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-2512",
"summary": "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.",
"evidence": "osv:CVE-2016-2512",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2016-2512",
"aliases": [
"CVE-2016-2512",
"GHSA-pw27-w7w4-9qc7",
"PYSEC-2016-15"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/django/django",
"type": "GIT",
"events": [
{
"introduced": "c982190acf7bcfba5e78a7505a45774916865569"
},
{
"last_affected": "c00335997744196738368f46c30ef2eeaa0ac849"
},
{
"fixed": "c5544d289233f501917e25970c03ed444abbd4f0"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:djangoproject:django:1.8.9:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.8.9"
},
{
"last_affected": "1.8.9"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:1.9:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.9"
},
{
"last_affected": "1.9"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:1.9.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.9.1"
},
{
"last_affected": "1.9.1"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:1.9.2:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.9.2"
},
{
"last_affected": "1.9.2"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "c5544d289233f501917e25970c03ed444abbd4f0"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"1.8.9",
"1.9",
"1.9.1",
"1.9.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-2512.json"
}
}
],
"modified": "2026-10-20T10:47:29.191164268Z",
"provider": "osv",
"references": [
"https://www.djangoproject.com/weblog/2016/mar/01/security-releases/",
"https://github.com/django/django/commit/c5544d289233f501917e25970c03ed444abbd4f0"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2016-2512",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 379421,
"published_at": "2016-04-08T15:59:06.183+00:00"
}