Django cross-site scripting (XSS) attack via user-supplied redirect URLs
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| django PyPI |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| django PyPI |
|
|
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.
From the CVE record · mitre
Django’s utils.http.is_safe_url function does not properly validate URLs containing control characters. A remote attacker can use a crafted URL to conduct a cross-site scripting attack; the input does not specify whether authentication or user interaction is required.
Anyone running the PyPI django package before 1.4.20, from 1.5 through before 1.6.11, from 1.7 through before 1.7.7, or on affected 1.8 prereleases before 1.8c1 should check their installation.