Live threats

All CVEs / Djangoproject

CVE-2016-2512Djangoproject Django

High 7.4 No auth needed

Priority
60
CVSS 3.0
7.4
EPSS
4.0%
probability of exploitation in 30 days · percentile 91
Auth required
No
Published
Apr 8, 2016
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django < 1.8.10 1.8.10 pip install "django>=1.8.10"
PyPI django ≥ 1.9a1 < 1.9.3 1.9.3 pip install "django>=1.9.3"
PyPI django < 1.8.10 1.8.10 pip install "django>=1.8.10"
PyPI django ≥ 1.9 < 1.9.3 1.9.3 pip install "django>=1.9.3"

Per OSV / GitHub Advisories (GHSA-pw27-w7w4-9qc7, PYSEC-2016-15). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectdjango1.8.9
djangoprojectdjango1.9
djangoprojectdjango1.9.1
djangoprojectdjango1.9.2

Official sources

References

Links published by the sources. Open them with care.