Skip to content
Fencer Intel
medium 6.1

CVE-2019-12308 json

Django Cross-site Scripting in AdminURLFieldWidget

published 7y ago modified 4mo 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

Is CVE-2019-12308 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

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-completion
    affected: no fix planned “Will not fix”
  • Red Hat OpenStack Platform 14 (Rocky) python2-django, python-django-bash-completion
    affected: no fix available
  • Red Hat Storage 3 python-django, python2-django, python-django-bash-completion
    affected: 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-completion
    +7 more products
    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
    not affected: vulnerable code not present

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-09).

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

Sources

Fencer Intel 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.