{"id":"CVE-2020-13596","aliases":["BIT-django-2020-13596","GHSA-2m34-jcjv-45xf","PYSEC-2020-32"],"kind":"cve","tier":"cold","status":"published","title":"XSS in Django","description":"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.","ai_summary":null,"severity":"medium","cvss":{"score":6.1,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"NVD"},"scores":[{"score":6.1,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd"},{"score":4.3,"version":"2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","source":"nvd"}],"cwe":["CWE-79"],"remote":true,"remote_unauth":true,"epss":{"score":0.02669,"percentile":0.86242,"date":"2026-12-04"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[{"ecosystem":"PyPI","name":"django","affected":">= 2.2a1, < 2.2.13","fixed":["2.2.13","3.0.7"],"source":"osv"}],"affected_products":[{"vendor":"n/a","product":"n/a","versions":"","source":"nvd"}],"ai_versions":null,"mitigation":"Upgrade django to one of 2.2.13, 3.0.7 (or later in the same release line).","technologies":[],"references":[{"url":"https://usn.ubuntu.com/4381-1/","kind":"vendor"},{"url":"https://usn.ubuntu.com/4381-2/","kind":"vendor"},{"url":"https://www.debian.org/security/2020/dsa-4705","kind":"vendor"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ/","kind":"vendor"},{"url":"https://docs.djangoproject.com/en/3.0/releases/security/","kind":"vendor"},{"url":"https://www.djangoproject.com/weblog/2020/jun/03/security-releases/","kind":"vendor"},{"url":"https://security.netapp.com/advisory/ntap-20200611-0002/","kind":"vendor"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-13596","kind":"vendor"},{"url":"https://github.com/advisories/GHSA-2m34-jcjv-45xf","kind":"vendor"},{"url":"https://www.oracle.com/security-alerts/cpujan2021.html","kind":"patch"},{"url":"https://github.com/django/django/commit/1f2dd37f6fcefdd10ed44cb233b2e62b520afb38","kind":"patch"},{"url":"https://github.com/django/django/commit/6d61860b22875f358fac83d903dc629897934815","kind":"patch"},{"url":"https://groups.google.com/forum/#%21msg/django-announce/pPEmb2ot4Fo/X-SMalYSBAAJ","kind":"other"},{"url":"https://docs.djangoproject.com/en/3.0/releases/security","kind":"other"},{"url":"https://github.com/django/django","kind":"other"},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2020-32.yaml","kind":"other"},{"url":"https://groups.google.com/forum/#!msg/django-announce/pPEmb2ot4Fo/X-SMalYSBAAJ","kind":"other"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ","kind":"other"},{"url":"https://security.netapp.com/advisory/ntap-20200611-0002","kind":"other"},{"url":"https://usn.ubuntu.com/4381-1","kind":"other"},{"url":"https://usn.ubuntu.com/4381-2","kind":"other"},{"url":"https://www.djangoproject.com/weblog/2020/jun/03/security-releases","kind":"other"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ/","kind":"other"}],"workarounds":null,"vendors":["canonical","debian","djangoproject","fedoraproject","netapp","oracle"],"products":["debian_linux","django","fedora","sra_plugin","steelstore_cloud_integrated_storage","ubuntu_linux","zfs_storage_appliance_kit"],"cpes":["cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","cpe:2.3:a:netapp:sra_plugin:-:*:*:*:*:linux:*:*","cpe:2.3:a:netapp:steelstore_cloud_integrated_storage:-:*:*:*:*:*:*:*","cpe:2.3:a:oracle:zfs_storage_appliance_kit:8.8:*:*:*:*:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*","cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*"],"published_at":"2020-06-03T13:13:55.000Z","modified_at":"2026-06-17T02:53:25.780Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-13596"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-2m34-jcjv-45xf","license_url":"https://creativecommons.org/licenses/by/4.0/"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/PYSEC-2020-32","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2020-13596","markdown":"https://flawdb.com/CVE-2020-13596.md","json":"https://flawdb.com/api/v1/entries/CVE-2020-13596"}}