PyPI: django

CVE-2020-13596

Safety vulnerability ID: SFTY-20200603-76612

Safety legacy ID: pyup.io-38372

An issue was discovered in Django 2.2 before 2.2.13 and 3.0 before 3.0.7. Query parameters generated by the Django admin ForeignKeyRawIdWidget were not properly URL encoded, leading to a possibility of an XSS attack.

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

Overview

XSS in Django

Advisory

An issue was discovered in Django 2.2 before 2.2.13 and 3.0 before 3.0.7. Query parameters generated by the Django admin ForeignKeyRawIdWidget were not properly URL encoded, leading to a possibility of an XSS attack.

Affected Package

Affecting django package, versions>=3.0a1,<3.0.7>=2.2a1,<2.2.13

Also affects

---

How to Fix

Upgradedjangoto3.0.72.2.13or 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