CVE-2019-12308

NameCVE-2019-12308
DescriptionAn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-1814-1, DSA-4476-1
NVD severitymedium (attack range: remote)
Debian Bugs929927

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-django (PTS)jessie1.7.11-1+deb8u3vulnerable
jessie (security)1.7.11-1+deb8u6fixed
stretch1:1.10.7-2+deb9u4vulnerable
stretch (security)1:1.10.7-2+deb9u5fixed
bullseye, buster1:1.11.21-1fixed
buster (security)1:1.11.22-1~deb10u1fixed
sid2:2.2.3-4fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-djangosource(unstable)1:1.11.21-1medium929927
python-djangosourcejessie1.7.11-1+deb8u5mediumDLA-1814-1
python-djangosourcestretch1:1.10.7-2+deb9u5mediumDSA-4476-1

Notes

https://github.com/django/django/commit/deeba6d92006999fee9adfbd8be79bf0a59e8008 (master)
https://github.com/django/django/commit/c238701859a52d584f349cce15d56c8e8137c52b (1.11.21)

Search for package or bug name: Reporting problems