CVE-2019-12308Djangoproject Django
Medium 6.1 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≥ 1.11 < 1.11.21 |
| djangoproject | django | ≥ 2.1 < 2.1.9 |
| djangoproject | django | ≥ 2.2 < 2.2.2 |
Official advisories
- python313-Django5-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11270-1 · Jul 14, 2026 Critical
- python313-Django-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11248-1 · Jul 10, 2026 Critical
- python313-Django4-4.2.30-4.1 on GA media · SUSE · openSUSE-SU-2026:11235-1 · Jul 9, 2026 Critical
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.
- lists.opensuse.org
- lists.opensuse.org
- www.openwall.com Mailing List Third Party Advisory
- www.securityfocus.com
- docs.djangoproject.com Vendor Advisory
- docs.djangoproject.com Vendor Advisory
- docs.djangoproject.com Vendor Advisory
- docs.djangoproject.com Vendor Advisory
- groups.google.com
- lists.debian.org
- lists.debian.org
- lists.fedoraproject.org
- seclists.org
- security.gentoo.org
- usn.ubuntu.com
- www.debian.org
- www.djangoproject.com Vendor Advisory