Django Cross-site Scripting in AdminURLFieldWidget
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| django PyPI |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| django PyPI |
|
|
2.2.2An issue was discovered in Django 1.11 before 1.11.21, 2.1 before 2.1.9, and 2.2 before 2.2.2. The clickable Current URL value displayed by the AdminURLFieldWidget displays the provided value without validating it as a safe URL. Thus, an unvalidated value stored in the database, or a value provided as a URL query parameter payload, could result in an clickable JavaScript link.
From the CVE record · mitre
Django’s AdminURLFieldWidget displays the clickable Current URL without checking whether it is safe. A value stored in the database or supplied through a URL query parameter can become a JavaScript link; exploitation requires someone to click it. The input does not specify attacker authentication requirements.
Anyone running the PyPI django package in the affected 1.11, 2.1, or 2.2 ranges, including prereleases, should check their version.