GitHub Advisoryadvisory · PyPI
GHSA-pw27-w7w4-9qc7 Django XSS Vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2016-2512
- Ecosystem
- PyPI
- Packages
- Django
- Severity
- Moderate
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2023-07-31
Affected packages
• PyPI Django: < 1.8.10 → fixed in 1.8.10
• PyPI Django: >= 1.9a1, < 1.9.3 → fixed in 1.9.3
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`.
Related
Alias · CVE (1)
- CVE-2016-2512 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… vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2016-2512 advisory
- https://github.com/django/django/commit/382ab137312961ad62feb8109d70a5a581fe8350 web
- https://github.com/django/django/commit/c5544d289233f501917e25970c03ed444abbd4f0 web
- https://github.com/django/django/commit/fc6d147a63f89795dbcdecb0559256470fff4380 web
- https://github.com/django/django package
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2016-15.yaml web
- https://web.archive.org/web/20210123090815/http://www.securityfocus.com/bid/83879 web
- https://web.archive.org/web/20210413200202/http://www.securitytracker.com/id/1035152 web
- https://www.djangoproject.com/weblog/2016/mar/01/security-releases web
- http://rhn.redhat.com/errata/RHSA-2016-0502.html web
- http://rhn.redhat.com/errata/RHSA-2016-0504.html web
- http://rhn.redhat.com/errata/RHSA-2016-0505.html web
- http://rhn.redhat.com/errata/RHSA-2016-0506.html web
- http://www.debian.org/security/2016/dsa-3544 web
- http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html web
- http://www.ubuntu.com/usn/USN-2915-1 web
- http://www.ubuntu.com/usn/USN-2915-2 web
- http://www.ubuntu.com/usn/USN-2915-3 web