GitHub Advisoryadvisory · PyPI

GHSA-7rp2-fm2h-wchj Django Cross-site Scripting in AdminURLFieldWidget

MEDIUM Published 2019-06-10 Modified 2024-09-20 Official page ↗
Aliases
CVE-2019-12308
Ecosystem
PyPI
Packages
Django
Severity
Moderate
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-79
Reviewed
2019-06-10

Affected packages

• PyPI Django: >= 1.11a1, < 1.11.21 → fixed in 1.11.21 • PyPI Django: >= 2.1a1, < 2.1.9 → fixed in 2.1.9 • PyPI Django: >= 2.2a1, < 2.2.2 → fixed in 2.2.2

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.

Related

Alias · CVE (1)

  • CVE-2019-12308 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. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References