PyPI: django

CVE-2019-12308

Safety vulnerability ID: SFTY-20190603-71223

Safety legacy ID: pyup.io-37186

Django 1.11.21, 2.1.9 and 2.2.2 include a fix for CVE-2019-12308: The clickable Current URL value displayed by the AdminURLFieldWidget displays the provided value without validating it as a safe URL. Thus, a non validated value stored in the database, or a value provided as a URL query parameter payload, could result in an clickable JavaScript link.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

Django Cross-site Scripting in AdminURLFieldWidget

Advisory

Django 1.11.21, 2.1.9 and 2.2.2 include a fix for CVE-2019-12308: The clickable Current URL value displayed by the AdminURLFieldWidget displays the provided value without validating it as a safe URL. Thus, a non validated value stored in the database, or a value provided as a URL query parameter payload, could result in an clickable JavaScript link.

Affected Package

Affecting django package, versions>=1.11a1,<1.11.21>=2.0a1,<2.1.9>=2.2a1,<2.2.2

Also affects

---

How to Fix

Upgradedjangoto1.11.212.1.92.2.2or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more