{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2019-12308","id":"CVE-2019-12308","title":"Django Cross-site Scripting in AdminURLFieldWidget","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.","descriptionLong":"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":"2019-06-03T16:24:31.000Z","updated":"2026-11-16T10:45:05.050170917Z","reserved":"2019-05-23T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"4.0","score":null,"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","source":"GitHub"},{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=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"],"fixed":["1.11.21","2.1.9","2.2.2"],"advisory":"GHSA-7rp2-fm2h-wchj"}],"cwes":["CWE-79"],"aliases":["GHSA-7rp2-fm2h-wchj","PYSEC-2019-79"],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2019/06/03/2","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://groups.google.com/forum/#%21topic/django-announce/GEbHU7YoVz8","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"https://docs.djangoproject.com/en/dev/releases/1.11.21/","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://docs.djangoproject.com/en/dev/releases/2.1.9/","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://docs.djangoproject.com/en/dev/releases/2.2.2/","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://www.djangoproject.com/weblog/2019/jun/03/security-releases/","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","article"]},{"url":"http://www.securityfocus.com/bid/108559","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/06/msg00001.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://usn.ubuntu.com/4043-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/07/msg00001.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://www.debian.org/security/2019/dsa-4476","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"https://seclists.org/bugtraq/2019/Jul/10","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","web"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00006.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"https://security.gentoo.org/glsa/202004-17","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-12308","tags":["advisory"]},{"url":"https://github.com/django/django/commit/09186a13d975de6d049f8b3e05484f66b01ece62","tags":["web"]},{"url":"https://github.com/django/django/commit/afddabf8428ddc89a332f7a78d0d21eaf2b5a673","tags":["web"]},{"url":"https://github.com/django/django/commit/c238701859a52d584f349cce15d56c8e8137c52b","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2019/jun/03/security-releases","tags":["web"]},{"url":"https://usn.ubuntu.com/4043-1","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G","tags":["web"]},{"url":"https://groups.google.com/forum/#!topic/django-announce/GEbHU7YoVz8","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-79.yaml","tags":["web"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://github.com/advisories/GHSA-7rp2-fm2h-wchj","tags":["advisory"]},{"url":"https://docs.djangoproject.com/en/dev/releases/security","tags":["web"]},{"url":"https://docs.djangoproject.com/en/dev/releases/2.2.2","tags":["web"]},{"url":"https://docs.djangoproject.com/en/dev/releases/2.1.9","tags":["web"]},{"url":"https://docs.djangoproject.com/en/dev/releases/1.11.21","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G/","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02402,"epssPercentile":0.84367,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2019-12308","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-12308","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2019-12308","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-7rp2-fm2h-wchj","ok":true,"note":"GHSA-7rp2-fm2h-wchj"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2019-12308","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["django"],"critical":[],"attention":null}