{"id":"CVE-2019-12308","aliases":["CVE-2019-12308","GHSA-7rp2-fm2h-wchj","PYSEC-2019-79"],"related":[],"kind":"vulnerability","state":"published","title":"Django Cross-site Scripting in AdminURLFieldWidget","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se descubrió un problema en Django 1.11 antes de 1.11.21, 2.1 anterior de la versión 2.1.9 y 2.2 anterior de la versión  2.2.2. El valor de la URL actual en la que se puede hacer clic, mostrado por el AdminURLFieldWidget, muestra el valor proporcionado sin validarlo como una URL segura. Por lo tanto, un valor no validado almacenado en la base de datos, o un valor proporcionado como una carga útil del parámetro de consulta de URL, podría resultar en un enlace de JavaScript que se puede hacer clic.","source":"nvd"}],"published":"2019-06-03T16:24:31.000Z","modified":"2026-06-17T02:14:23.963Z","severity":{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.11a1","status":"affected","fixed":"1.11.21"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.1a1","status":"affected","fixed":"2.1.9"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.2a1","status":"affected","fixed":"2.2.2"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.11","fixed":"1.11.21"},{"status":"affected","introduced":"2.1","fixed":"2.1.9"},{"status":"affected","introduced":"2.2","fixed":"2.2.2"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2.1","status":"affected","fixed":"2.1.9"},{"type":"ecosystem","introduced":"1.11","status":"affected","fixed":"1.11.21"},{"type":"ecosystem","introduced":"2.2","status":"affected","fixed":"2.2.2"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"http://www.openwall.com/lists/oss-security/2019/06/03/2","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://groups.google.com/forum/#%21topic/django-announce/GEbHU7YoVz8","tags":["x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://docs.djangoproject.com/en/dev/releases/1.11.21/","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://docs.djangoproject.com/en/dev/releases/2.1.9/","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://docs.djangoproject.com/en/dev/releases/2.2.2/","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://www.djangoproject.com/weblog/2019/jun/03/security-releases/","tags":["article","vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"http://www.securityfocus.com/bid/108559","tags":["vdb-entry","web","x-refsource-bid","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/06/msg00001.html","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://usn.ubuntu.com/4043-1/","tags":["vendor-advisory","web","x-refsource-ubuntu","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/07/msg00001.html","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.debian.org/security/2019/dsa-4476","tags":["advisory","vendor-advisory","web","x-refsource-debian","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://seclists.org/bugtraq/2019/Jul/10","tags":["mailing-list","web","x-refsource-bugtraq","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00006.html","tags":["vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html","tags":["vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://security.gentoo.org/glsa/202004-17","tags":["advisory","vendor-advisory","web","x-refsource-gentoo","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-12308","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/09186a13d975de6d049f8b3e05484f66b01ece62","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/afddabf8428ddc89a332f7a78d0d21eaf2b5a673","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/c238701859a52d584f349cce15d56c8e8137c52b","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2019/jun/03/security-releases","tags":["web"],"sources":["ghsa"]},{"url":"https://usn.ubuntu.com/4043-1","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G","tags":["web"],"sources":["ghsa"]},{"url":"https://groups.google.com/forum/#!topic/django-announce/GEbHU7YoVz8","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-79.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-7rp2-fm2h-wchj","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://docs.djangoproject.com/en/dev/releases/security","tags":["web"],"sources":["ghsa"]},{"url":"https://docs.djangoproject.com/en/dev/releases/2.2.2","tags":["web"],"sources":["ghsa"]},{"url":"https://docs.djangoproject.com/en/dev/releases/2.1.9","tags":["web"],"sources":["ghsa"]},{"url":"https://docs.djangoproject.com/en/dev/releases/1.11.21","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G/","tags":["web"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-12308","url":"https://www.cve.org/CVERecord?id=CVE-2019-12308","licence":"CVE Terms of Use","modified":"2024-08-04T23:17:39.619Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7rp2-fm2h-wchj","url":"https://github.com/advisories/GHSA-7rp2-fm2h-wchj","licence":"CC-BY-4.0","modified":"2024-09-20T16:09:01.600Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-12308","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-12308","licence":"Public domain","modified":"2026-06-17T02:14:23.963Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2019-79","url":"https://osv.dev/vulnerability/PYSEC-2019-79","licence":"CC-BY-4.0","modified":"2023-11-08T04:01:03.504Z"}],"updatedAt":"2026-11-25T22:57:45.038Z","epss":{"score":0.02402,"percentile":0.84497,"date":"2026-12-01T12:00:22.000Z"}}