CVE-2019-12308
MEDIUM 6.1CVSS 3.0Django Cross-site Scripting in AdminURLFieldWidget
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.
- Published
- 3 Jun 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-7rp2-fm2h-wchjPYSEC-2019-79
- Sources
- NVDJSONOSV GHSA-7rp2-fm2h-wchjJSONOSV PYSEC-2019-79JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 1.11, < 1.11.21 | 1.11.21 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 2.1, < 2.1.9 | 2.1.9 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 2.2, < 2.2.2 | 2.2.2 |
| OSV | PyPI | django | >= 1.11a1, < 1.11.21 | 1.11.21 |
| OSV | PyPI | django | >= 2.1a1, < 2.1.9 | 2.1.9 |
| OSV | PyPI | django | >= 2.2a1, < 2.2.2 | 2.2.2 |
| OSV | PyPI | django | >= 2.1, < 2.1.9; >= 1.11, < 1.11.21; >= 2.2, < 2.2.2 | 2.1.9, 1.11.21, 2.2.2 |
References
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00006.html · WEB
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html · WEB
- http://www.openwall.com/lists/oss-security/2019/06/03/2 · Mailing List, Third Party Advisory, WEB
- http://www.securityfocus.com/bid/108559 · WEB
- 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://docs.djangoproject.com/en/dev/releases/security/ · Vendor Advisory, WEB
- https://groups.google.com/forum/#%21topic/django-announce/GEbHU7YoVz8
- https://lists.debian.org/debian-lts-announce/2019/06/msg00001.html · WEB
- https://lists.debian.org/debian-lts-announce/2019/07/msg00001.html · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G/
- https://seclists.org/bugtraq/2019/Jul/10 · WEB
- https://security.gentoo.org/glsa/202004-17 · WEB, ADVISORY
- https://usn.ubuntu.com/4043-1/ · WEB
- https://www.debian.org/security/2019/dsa-4476 · WEB, ADVISORY
- https://www.djangoproject.com/weblog/2019/jun/03/security-releases/ · Vendor Advisory, WEB, ARTICLE
- 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://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
History
- 25 Nov 2026 20:22 UTC · NVD: first stored (published 3 Jun 2019)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Jun 2019)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Jun 2019)