Cross-site scripting in Django - CVE-2019-12308

 

Cross-site scripting in Django - CVE-2019-12308

Published: June 4, 2019


Vulnerability identifier: #VU18672
CSH Severity: Low
CVSS v4: 2.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2019-12308
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

Django
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

Install updates from vendor's website.

Django - addressed in versions 1.11.21, 2.1.9, 2.2.2
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

Related Security Bulletins