Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2019-12308

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-12308
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 04:17 UTC · Revision 1

Source evidence

CVE-2019-12308

core-osv · Original source

Published 3 Jun 2019, 17:29 UTC

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.

osv:CVE-2019-12308
Complete source record
{
  "id": "d484a8b51da53e73076739ec57367fda78da677639af20560e1d92bf892c4bcf",
  "url": "https://osv.dev/vulnerability/CVE-2019-12308",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-12308",
    "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.",
    "evidence": "osv:CVE-2019-12308",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2019-12308",
      "aliases": [
        "CVE-2019-12308",
        "GHSA-7rp2-fm2h-wchj",
        "PYSEC-2019-79"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/django/django",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c669cf279ae7b3e02a61db4fb077030a4db80e4f"
                },
                {
                  "fixed": "bc1f79d0a01d085500aa82ff29800403291a91a4"
                },
                {
                  "introduced": "df591468251ed489a3e147d7c359f387f4effe66"
                },
                {
                  "fixed": "60ebd195c99884e0cf0aee721839119079bb3046"
                },
                {
                  "introduced": "2a62cdcfec85938f40abb2e9e6a9ff497e02afe8"
                },
                {
                  "fixed": "9400c96b209855d7b97e3223e4b8ba7751c357cc"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.11"
                      },
                      {
                        "fixed": "1.11.21"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.1"
                      },
                      {
                        "fixed": "2.1.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.2"
                      },
                      {
                        "fixed": "2.2.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-12308.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:16.735467909Z",
      "provider": "osv",
      "references": [
        "https://groups.google.com/forum/#%21topic/django-announce/GEbHU7YoVz8",
        "https://lists.debian.org/debian-lts-announce/2019/06/msg00001.html",
        "https://lists.debian.org/debian-lts-announce/2019/07/msg00001.html",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G/",
        "https://seclists.org/bugtraq/2019/Jul/10",
        "https://usn.ubuntu.com/4043-1/",
        "https://docs.djangoproject.com/en/dev/releases/1.11.21/",
        "https://docs.djangoproject.com/en/dev/releases/2.1.9/",
        "https://docs.djangoproject.com/en/dev/releases/2.2.2/",
        "https://docs.djangoproject.com/en/dev/releases/security/",
        "https://security.gentoo.org/glsa/202004-17",
        "https://www.debian.org/security/2019/dsa-4476",
        "https://www.djangoproject.com/weblog/2019/jun/03/security-releases/"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2019-12308",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 429405,
  "published_at": "2019-06-03T17:29:01.213+00:00"
}