Vulnerability advisory
GHSA-7rp2-fm2h-wchj
Django Cross-site Scripting in AdminURLFieldWidget
Also known as CVE-2019-12308PYSEC-2019-79
Severity
- CVSS 3.x
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Affected versions
| Affected | Fixed in |
|---|---|
1.11a1 to before 1.11.21 | 1.11.21Advisories → |
2.1a1 to before 2.1.9 | 2.1.9Advisories → |
2.2a1 to before 2.2.2 | 2.2.2Advisories → |
Description
An 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.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2019-12308 ↗
- Webgithub.com/django/django/commit/09186a13d975de6d049f8b3e05484f66b01ece62 ↗
- Webgithub.com/django/django/commit/afddabf8428ddc89a332f7a78d0d21eaf2b5a673 ↗
- Webgithub.com/django/django/commit/c238701859a52d584f349cce15d56c8e8137c52b ↗
- Webwww.djangoproject.com/weblog/2019/jun/03/security-releases ↗
- Webwww.debian.org/security/2019/dsa-4476 ↗
- Webusn.ubuntu.com/4043-1 ↗
- Websecurity.gentoo.org/glsa/202004-17 ↗
- Webseclists.org/bugtraq/2019/Jul/10 ↗
- Weblists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G ↗
- Weblists.debian.org/debian-lts-announce/2019/07/msg00001.html ↗
- Weblists.debian.org/debian-lts-announce/2019/06/msg00001.html ↗
- Webgroups.google.com/forum/#!topic/django-announce/GEbHU7YoVz8 ↗
- Webgithub.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-79.yaml ↗
- Packagegithub.com/django/django ↗
- Advisorygithub.com/advisories/GHSA-7rp2-fm2h-wchj ↗
- Webdocs.djangoproject.com/en/dev/releases/security ↗
- Webdocs.djangoproject.com/en/dev/releases/2.2.2 ↗
- Webdocs.djangoproject.com/en/dev/releases/2.1.9 ↗
- Webdocs.djangoproject.com/en/dev/releases/1.11.21 ↗
- Weblists.opensuse.org/opensuse-security-announce/2019-08/msg00006.html ↗
- Weblists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html ↗
- Webwww.openwall.com/lists/oss-security/2019/06/03/2 ↗