Live threats

All CVEs / Djangoproject

CVE-2019-12308Djangoproject Django

Medium 6.1 No auth needed

Priority
52
CVSS 3.0
6.1
EPSS
2.4%
probability of exploitation in 30 days · percentile 85
Auth required
No
Published
Jun 3, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django ≥ 1.11a1 < 1.11.21 1.11.21 pip install "django>=1.11.21"
PyPI django ≥ 2.1a1 < 2.1.9 2.1.9 pip install "django>=2.1.9"
PyPI django ≥ 2.2a1 < 2.2.2 2.2.2 pip install "django>=2.2.2"
PyPI django ≥ 2.1 < 2.1.9 2.1.9 pip install "django>=2.1.9"
PyPI django ≥ 1.11 < 1.11.21 1.11.21 pip install "django>=1.11.21"
PyPI django ≥ 2.2 < 2.2.2 2.2.2 pip install "django>=2.2.2"

Per OSV / GitHub Advisories (GHSA-7rp2-fm2h-wchj, PYSEC-2019-79). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectdjango≥ 1.11 < 1.11.21
djangoprojectdjango≥ 2.1 < 2.1.9
djangoprojectdjango≥ 2.2 < 2.2.2

Official advisories

Also: SUSE (+1)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.