CVE-2019-12308

django: missing URL validation by AdminURLFieldWidget leads to generation of clickable unsafe JavaScript link causing cross site scripting

Published Jun 3, 2019 CVSS 3.0 · 6.1 Medium EPSS 2.4% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-1814-1 python-django security update
Debian DLA Debian DLA DLA-1842-1 python-django security update
Debian DSA Debian DSA DSA-4476-1 python-django security update
EUVD EUVD EUVD-2019-0043 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.
Github GHSA Github GHSA GHSA-7rp2-fm2h-wchj Django Cross-site Scripting in AdminURLFieldWidget
Ubuntu USN Ubuntu USN USN-4043-1 Django vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 11:17 PM
Reserved
May 23, 2019, 12:00 AM
Status
Modified
Published
Jun 3, 2019, 5:29 PM
Modified
Jun 17, 2026, 2:14 AM
Severity
Moderate
Public date
Jun 3, 2019, 12:00 AM