CVE-2019-12308 json
Django Cross-site Scripting in AdminURLFieldWidget
published 2019-06-03 7 y ago modified 2026-06-17 4 mo ago also GHSA-7rp2-fm2h-wchj , PYSEC-2019-79 , EUVD-2019-0043
- cvss
- 6.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.4%
- EPSS 2.4% chance of exploitation in 30 days, percentile 84%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi django 1.11.21, 2.1.9, 2.2.2
- djangoproject django 1.11.21, 2.1.9, 2.2.2
- python-django Debian 14, Debian 13, Debian 12 1:1.11.21-1
debian advisories DEBIAN-CVE-2019-12308
- python-django Ubuntu 18.04 LTS 1:1.11.11-1ubuntu1.4
ubuntu advisories UBUNTU-CVE-2019-12308
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-Django openSUSE Leap 15.5 2.0.7-150000.1.27.1
- python-Django1 OpenStack Cloud Crowbar 9, OpenStack Cloud 9 1.11.23-3.9.1
- python-Django OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 1.11.23-3.12.1
- python-Django1 OpenStack Cloud Crowbar 9, OpenStack Cloud 9 1.11.20-3.6.1
suse advisories SUSE-SU-2024:2817-1SUSE-SU-2019:2335-1SUSE-SU-2019:2257-1SUSE-SU-2019:2034-1
- python-Django5 openSUSE Tumbleweed 5.2.16-1.1
- python-Django openSUSE Tumbleweed 5.2.16-1.1
- python-Django4 openSUSE Tumbleweed 4.2.30-4.1
- python-Django6 openSUSE Tumbleweed 6.0-1.1
- python-Django4 openSUSE Tumbleweed 4.2.14-1.1
- python-Django openSUSE Tumbleweed 3.2.7-2.3
- python-Django openSUSE Tumbleweed 4.2.11-2.1
- python-Django Package Hub 15 SP1 2.2.4-bp151.3.3.1
opensuse advisories openSUSE-SU-2026:11270-1openSUSE-SU-2026:11248-1openSUSE-SU-2026:11235-1openSUSE-SU-2026:10005-1openSUSE-SU-2024:14208-1openSUSE-SU-2024:11205-1
- py-django Alpine 3.10, Alpine 3.9, Alpine 3.8 +1 more 1.11.21-r0
- py3-django Alpine 3.24, Alpine 3.23, Alpine 3.22 +11 more 1.11.21-r0
alpine advisories ALPINE-CVE-2019-12308
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-django Arch Linux 2.2.2-1
arch linux advisories AVG-969
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2019-12308 updated cvss 4.7
django: missing URL validation by AdminURLFieldWidget leads to generation of clickable unsafe JavaScript link causing cross site scripting
-
Red Hat OpenStack Platform 13 (Queens) python-django, python2-django, python-django-bash-completionaffected: no fix planned “Will not fix”
-
Red Hat OpenStack Platform 14 (Rocky) python2-django, python-django-bash-completionaffected: no fix available
-
Red Hat Storage 3 python-django, python2-django, python-django-bash-completionaffected: no fix planned “Will not fix”
-
Red Hat Ceph Storage 2 python-django, python-django-bash-completion Red Hat Ceph Storage 3 python-django, python-django-bash-completion Red Hat Certification for Red Hat Enterprise Linux 7 python-django Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) python-django, python-django-bash-completion Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) Operational Tools python-django, python-django-bash-completion Red Hat OpenStack Platform 8 (Liberty) python-django, python-django-bash-completionnot affected: vulnerable code not present
+7 more productsfewer
Red Hat OpenStack Platform 8 (Liberty) Operational Tools python-django, python-django-bash-completion Red Hat OpenStack Platform 9 (Mitaka) python-django, python-django-bash-completion Red Hat OpenStack Platform 9 (Mitaka) Operational Tools python-django, python-django-bash-completion Red Hat OpenStack Platform 10 (Newton) python-django, python-django-bash-completion Red Hat OpenStack Platform 15 (Stein) python-django, python3-django, python-django-bash-completion Red Hat Satellite 6 python-django, python2-django, python-django-bash-completion Red Hat Update Infrastructure 3 for Cloud Providers python-django
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.40% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | django | >=1.11a1, <1.11.21 >=2.1a1, <2.1.9 >=2.2a1, <2.2.2 >=2.1, <2.1.9 >=1.11, <1.11.21 >=2.2, <2.2.2 |
1.11.21 2.1.9 2.2.2 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
-
github.com
/django/django/commit/09186a13d975de6d049f8b3e05484f66b01ece62
web
-
github.com
/django/django/commit/afddabf8428ddc89a332f7a78d0d21eaf2b5a673
web
-
github.com
/django/django/commit/c238701859a52d584f349cce15d56c8e8137c52b
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G/
vendor-advisory
-
usn.ubuntu.com
/4043-1/
vendor-advisory, web
-
debian.org
/security/2019/dsa-4476
vendor-advisory, web, advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-08/msg00006.html
vendor-advisory, web
-
lists.opensuse.org
/opensuse-security-announce/2019-08/msg00025.html
vendor-advisory, web
-
security.gentoo.org
/glsa/202004-17
vendor-advisory, web, advisory
-
docs.djangoproject.com
/en/dev/releases/security/
vendor-advisory, web
-
docs.djangoproject.com
/en/dev/releases/1.11.21/
vendor-advisory, web
-
docs.djangoproject.com
/en/dev/releases/2.1.9/
vendor-advisory, web
-
docs.djangoproject.com
/en/dev/releases/2.2.2/
vendor-advisory, web
-
djangoproject.com
/weblog/2019/jun/03/security-releases/
vendor-advisory, article
-
openwall.com
/lists/oss-security/2019/06/03/2
mailing-list, web, third-party-advisory
- groups.google.com /forum/#%21topic/django-announce/GEbHU7YoVz8
-
securityfocus.com
/bid/108559
vdb-entry, web
-
lists.debian.org
/debian-lts-announce/2019/06/msg00001.html
mailing-list, web
-
lists.debian.org
/debian-lts-announce/2019/07/msg00001.html
mailing-list, web
-
seclists.org
/bugtraq/2019/Jul/10
mailing-list, web
-
nvd.nist.gov
/vuln/detail/CVE-2019-12308
advisory
-
djangoproject.com
/weblog/2019/jun/03/security-releases
web
-
usn.ubuntu.com
/4043-1
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G
web
-
groups.google.com
/forum/#!topic/django-announce/GEbHU7YoVz8
web
-
github.com
/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-79.yaml
web
-
github.com
/django/django
package
-
github.com
/advisories/GHSA-7rp2-fm2h-wchj
advisory
-
docs.djangoproject.com
/en/dev/releases/security
web
-
docs.djangoproject.com
/en/dev/releases/2.2.2
web
-
docs.djangoproject.com
/en/dev/releases/2.1.9
web
-
docs.djangoproject.com
/en/dev/releases/1.11.21
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G/
web
Sources
- CVE List CVE-2019-12308
- GitHub Advisory GHSA-7rp2-fm2h-wchj
- NVD CVE-2019-12308
- OSV PYSEC-2019-79
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.