Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Django
  4. ›
  5. CVE-2019-12308

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

June 10, 2019 (updated September 20, 2024)

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.

References

  • docs.djangoproject.com/en/dev/releases/1.11.21
  • docs.djangoproject.com/en/dev/releases/2.1.9
  • docs.djangoproject.com/en/dev/releases/2.2.2
  • docs.djangoproject.com/en/dev/releases/security
  • github.com/advisories/GHSA-7rp2-fm2h-wchj
  • github.com/django/django
  • github.com/django/django/commit/09186a13d975de6d049f8b3e05484f66b01ece62
  • github.com/django/django/commit/afddabf8428ddc89a332f7a78d0d21eaf2b5a673
  • github.com/django/django/commit/c238701859a52d584f349cce15d56c8e8137c52b
  • github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-79.yaml
  • groups.google.com/forum/
  • lists.debian.org/debian-lts-announce/2019/06/msg00001.html
  • lists.debian.org/debian-lts-announce/2019/07/msg00001.html
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G
  • nvd.nist.gov/vuln/detail/CVE-2019-12308
  • seclists.org/bugtraq/2019/Jul/10
  • security.gentoo.org/glsa/202004-17
  • usn.ubuntu.com/4043-1
  • www.debian.org/security/2019/dsa-4476
  • www.djangoproject.com/weblog/2019/jun/03/security-releases

Code Behaviors & Features

Detect and mitigate CVE-2019-12308 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.11a1 before 1.11.21, all versions starting from 2.1a1 before 2.1.9, all versions starting from 2.2a1 before 2.2.2

Fixed versions

  • 1.11.21
  • 2.1.9
  • 2.2.2

Solution

Upgrade to versions 1.11.21, 2.1.9, 2.2.2 or above.

Impact 6.1 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/Django/CVE-2019-12308.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:40 +0000.