PyPI: django
CVE-2019-12308
Safety vulnerability ID: SFTY-20190603-71223
Safety legacy ID: pyup.io-37186
Django 1.11.21, 2.1.9 and 2.2.2 include a fix for CVE-2019-12308: The clickable Current URL value displayed by the AdminURLFieldWidget displays the provided value without validating it as a safe URL. Thus, a non validated value stored in the database, or a value provided as a URL query parameter payload, could result in an clickable JavaScript link.
Overview
Django Cross-site Scripting in AdminURLFieldWidget
Advisory
Django 1.11.21, 2.1.9 and 2.2.2 include a fix for CVE-2019-12308: The clickable Current URL value displayed by the AdminURLFieldWidget displays the provided value without validating it as a safe URL. Thus, a non validated value stored in the database, or a value provided as a URL query parameter payload, could result in an clickable JavaScript link.
Affected Package
Also affects
---
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20190603-71223/CVE-2019-12308
- https://nvd.nist.gov/vuln/detail/CVE-2019-12308
- http://www.openwall.com/lists/oss-security/2019/06/03/2
- https://groups.google.com/forum/#!topic/django-announce/GEbHU7YoVz8
- https://github.com/django/django/commit/09186a13d975de6d049f8b3e05484f66b01ece62
- https://github.com/django/django/commit/afddabf8428ddc89a332f7a78d0d21eaf2b5a673
- https://github.com/django/django/commit/c238701859a52d584f349cce15d56c8e8137c52b
- https://docs.djangoproject.com/en/dev/releases/1.11.21
- https://docs.djangoproject.com/en/dev/releases/2.1.9
- https://docs.djangoproject.com/en/dev/releases/2.2.2
- https://docs.djangoproject.com/en/dev/releases/security
- https://www.djangoproject.com/weblog/2019/jun/03/security-releases
- https://www.debian.org/security/2019/dsa-4476
- https://usn.ubuntu.com/4043-1
- https://security.gentoo.org/glsa/202004-17
- https://seclists.org/bugtraq/2019/Jul/10
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G
- https://lists.debian.org/debian-lts-announce/2019/07/msg00001.html
- https://lists.debian.org/debian-lts-announce/2019/06/msg00001.html
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-79.yaml
- https://github.com/advisories/GHSA-7rp2-fm2h-wchj
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00006.html
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
