CVE-2020-13596Djangoproject Django
Medium 6.1 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 2.7% probability of exploitation in 30 days · percentile 87
- Auth required
- No
- Published
- Jun 3, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django |
≥ 2.2a1 < 2.2.13 |
2.2.13 |
pip install "django>=2.2.13" |
| PyPI | django |
≥ 3.0a1 < 3.0.7 |
3.0.7 |
pip install "django>=3.0.7" |
| PyPI | django |
≥ 2.2 < 2.2.13 |
2.2.13 |
pip install "django>=2.2.13" |
| PyPI | django |
≥ 3.0 < 3.0.7 |
3.0.7 |
pip install "django>=3.0.7" |
Per OSV / GitHub Advisories (GHSA-2m34-jcjv-45xf, PYSEC-2020-32). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≥ 2.2 < 2.2.13 |
| djangoproject | django | ≥ 3.0 < 3.0.7 |
| fedoraproject | fedora | 32 |
| canonical | ubuntu_linux | 14.04 |
| canonical | ubuntu_linux | 16.04 |
| canonical | ubuntu_linux | 18.04 |
| canonical | ubuntu_linux | 19.10 |
| canonical | ubuntu_linux | 20.04 |
| netapp | sra_plugin | all |
| netapp | steelstore_cloud_integrated_storage | all |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| oracle | zfs_storage_appliance_kit | 8.8 |
Official advisories
- python313-Django5-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11270-1 · Jul 14, 2026 Critical
- python313-Django-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11248-1 · Jul 10, 2026 Critical
- python313-Django4-4.2.30-4.1 on GA media · SUSE · openSUSE-SU-2026:11235-1 · Jul 9, 2026 Critical
Also: SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- docs.djangoproject.com Release Notes Vendor Advisory
- groups.google.com
- lists.fedoraproject.org
- security.netapp.com Third Party Advisory
- usn.ubuntu.com Third Party Advisory
- usn.ubuntu.com Third Party Advisory
- www.debian.org Third Party Advisory
- www.djangoproject.com Release Notes Vendor Advisory
- www.oracle.com Patch Third Party Advisory