# CVE-2019-12308: Django Cross-site Scripting in AdminURLFieldWidget

- Severity: Medium 6.1 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.40%, higher than 84% of CVEs (2026-12-01)
- Published: 2019-06-03T16:24:31.000Z
- Modified: 2026-06-17T02:14:23.963Z
- Also known as: GHSA-7rp2-fm2h-wchj, PYSEC-2019-79
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- django (PyPI): from 1.11a1 before 1.11.21; from 2.1a1 before 2.1.9; from 2.2a1 before 2.2.2; from 2.1 before 2.1.9; from 1.11 before 1.11.21; from 2.2 before 2.2.2
- djangoproject django: from 1.11 before 1.11.21; from 2.1 before 2.1.9; from 2.2 before 2.2.2

## Every score

- GitHub: CVSS:3.0 6.1 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.0 6.1 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://docs.djangoproject.com/en/dev/releases/security/> (vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2019/06/03/2> (mailing-list, third-party-advisory, web)
- <https://groups.google.com/forum/#%21topic/django-announce/GEbHU7YoVz8>
- <https://docs.djangoproject.com/en/dev/releases/1.11.21/> (vendor-advisory, web)
- <https://docs.djangoproject.com/en/dev/releases/2.1.9/> (vendor-advisory, web)
- <https://docs.djangoproject.com/en/dev/releases/2.2.2/> (vendor-advisory, web)
- <https://www.djangoproject.com/weblog/2019/jun/03/security-releases/> (article, vendor-advisory)
- <http://www.securityfocus.com/bid/108559> (vdb-entry, web)
- <https://lists.debian.org/debian-lts-announce/2019/06/msg00001.html> (mailing-list, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G/> (vendor-advisory)
- <https://usn.ubuntu.com/4043-1/> (vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2019/07/msg00001.html> (mailing-list, web)
- <https://www.debian.org/security/2019/dsa-4476> (advisory, vendor-advisory, web)
- <https://seclists.org/bugtraq/2019/Jul/10> (mailing-list, web)
- <http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00006.html> (vendor-advisory, web)
- <http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html> (vendor-advisory, web)
- <https://security.gentoo.org/glsa/202004-17> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-12308> (advisory)
- <https://github.com/django/django/commit/09186a13d975de6d049f8b3e05484f66b01ece62> (web)
- <https://github.com/django/django/commit/afddabf8428ddc89a332f7a78d0d21eaf2b5a673> (web)
- <https://github.com/django/django/commit/c238701859a52d584f349cce15d56c8e8137c52b> (web)
- <https://www.djangoproject.com/weblog/2019/jun/03/security-releases> (web)
- <https://usn.ubuntu.com/4043-1> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G> (web)
- <https://groups.google.com/forum/#!topic/django-announce/GEbHU7YoVz8> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-79.yaml> (web)
- <https://github.com/django/django> (package)
- <https://github.com/advisories/GHSA-7rp2-fm2h-wchj> (advisory)
- <https://docs.djangoproject.com/en/dev/releases/security> (web)
- <https://docs.djangoproject.com/en/dev/releases/2.2.2> (web)
- <https://docs.djangoproject.com/en/dev/releases/2.1.9> (web)
- <https://docs.djangoproject.com/en/dev/releases/1.11.21> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G/> (web)

## Sources

- CVE List: [CVE-2019-12308](https://www.cve.org/CVERecord?id=CVE-2019-12308), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-7rp2-fm2h-wchj](https://github.com/advisories/GHSA-7rp2-fm2h-wchj), CC-BY-4.0, modified 2024-09-20
- NVD: [CVE-2019-12308](https://nvd.nist.gov/vuln/detail/CVE-2019-12308), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2019-79](https://osv.dev/vulnerability/PYSEC-2019-79), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2019-12308 · Whole record: https://cve.day/CVE-2019-12308.json · Rebuilt by cve.day 2026-11-25T22:57:45.038Z
