GitHub Advisoryadvisory · PyPI

GHSA-7fq8-4pv5-5w5c Django cross-site scripting (XSS) attack via user-supplied redirect URLs

MEDIUM Published 2022-05-14 Modified 2024-09-18 Official page ↗
Aliases
CVE-2015-2317
Ecosystem
PyPI
Packages
Django
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-79
Reviewed
2024-04-29

Affected packages

• PyPI Django: < 1.4.20 → fixed in 1.4.20 • PyPI Django: >= 1.5, < 1.6.11 → fixed in 1.6.11 • PyPI Django: >= 1.7, < 1.7.7 → fixed in 1.7.7 • PyPI Django: >= 1.8a1, < 1.8c1 → fixed in 1.8c1

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.

Related

Alias · CVE (1)

  • CVE-2015-2317 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… vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References