Live threats

All CVEs / Djangoproject

CVE-2020-13596Djangoproject Django

Medium 6.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
djangoprojectdjango≥ 2.2 < 2.2.13
djangoprojectdjango≥ 3.0 < 3.0.7
fedoraprojectfedora32
canonicalubuntu_linux14.04
canonicalubuntu_linux16.04
canonicalubuntu_linux18.04
canonicalubuntu_linux19.10
canonicalubuntu_linux20.04
netappsra_pluginall
netappsteelstore_cloud_integrated_storageall
debiandebian_linux9.0
debiandebian_linux10.0
oraclezfs_storage_appliance_kit8.8

Official advisories

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.