CVE-2019-12308
Django Cross-site Scripting in AdminURLFieldWidget
Reported by mitre · Published June 3, 2019
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| alpine | py3-django | 0 |
| djangoproject | django | |
| alpine | py-django | 0 |
| PyPI | Django | 2.2a1, 1.11a1, 2.1a1 |
| arch | python-django | 0 |
Timeline
- Jun 3, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Feb 4, 2026 CVE Updated
- Mar 6, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 6, 2026 Security Advisory (8 in total, the first dated here)
- Sep 15, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-12308
vulnetix vdb fixes CVE-2019-12308
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-12308/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- [oss-security] 20190603 Django: CVE-2019-12308 AdminURLFieldWidget XSS (plus patched bundled jQuery for CVE-2019-11358) mailing-listx_refsource_MLIST
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- 108559 vdb-entryx_refsource_BID
- [debian-lts-announce] 20190605 [SECURITY] [DLA 1814-1] python-django security update mailing-listx_refsource_MLIST
- FEDORA-2019-57a4324120 vendor-advisoryx_refsource_FEDORA
- USN-4043-1 vendor-advisoryx_refsource_UBUNTU
- [debian-lts-announce] 20190701 [SECURITY] [DLA 1842-1] python-django security update mailing-listx_refsource_MLIST
- DSA-4476 vendor-advisoryx_refsource_DEBIAN
- 20190708 [SECURITY] [DSA 4476-1] python-django security update mailing-listx_refsource_BUGTRAQ
- openSUSE-SU-2019:1839 vendor-advisoryx_refsource_SUSE
- openSUSE-SU-2019:1872 vendor-advisoryx_refsource_SUSE
- GLSA-202004-17 vendor-advisoryx_refsource_GENTOO
- https://nvd.nist.gov/vuln/detail/CVE-2019-12308 advisory
- https://github.com/advisories/GHSA-7rp2-fm2h-wchj advisory
- https://github.com/django/django/commit/09186a13d975de6d049f8b3e05484f66b01ece62 patch
…and 12 more