ADVISORIES

GitHub Advisory Database

GHSA-7rp2-fm2h-wchj

Django Cross-site Scripting in AdminURLFieldWidget

Details

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.

Affected packages

EcosystemPackageAffected versions
PyPIdjango
From 1.11a1 before 1.11.21 (fixed in 1.11.21)
PyPIdjango
From 2.1a1 before 2.1.9 (fixed in 2.1.9)
PyPIdjango
From 2.2a1 before 2.2.2 (fixed in 2.2.2)

References