Cross-site scripting in Django - CVE-2019-12308
Published: June 4, 2019
Vulnerability details
The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.
The vulnerability exists due to insufficient sanitization of URL within the AdminURLFieldWidget. A remote attacker can trick the victim to follow a specially crafted link and display a clickable JavaScript link.
Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.
Affected software
Arch Linux
Gentoo Linux
Fedora
SUSE Linux
Opensuse
openSUSE Leap
python-django (Debian package)
py-django (Alpine package)
Django
python-django
python3-Django
How to mitigate CVE-2019-12308
python-django (Debian package) - update to 1:1.10.7-2+deb9u5
py-django (Alpine package) - update to 1.11.21-r0
Django - addressed in versions 1.6-2920190805151106.6c81f848, 1.6-3020190805151106.a5b0195c
python-django - addressed in versions 1.11.21-1.el7, 2.1.9-1.fc30
python3-Django - update to 2.0.7-150000.1.27.1
External References
- http://www.openwall.com/lists/oss-security/2019/06/03/2
- 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://groups.google.com/forum/#!topic/django-announce/GEbHU7YoVz8
- https://www.djangoproject.com/weblog/2019/jun/03/security-releases/
Related Security Bulletins
- Cross-site scripting in Django
- Arch Linux update for python2-django
- Arch Linux update for python-django
- Debian update for python-django
- OpenSUSE Linux update for python-Django
- OpenSUSE Linux update for python-Django
- Gentoo update for Django
- Cross-site scripting in py-django (Alpine package)
- SUSE update for python-Django
- Fedora 30 update for python-django
- Fedora EPEL 7 update for python-django
- Fedora 29 Modular update for django
- Fedora 30 Modular update for django