{"id":"CVE-2020-13596","published":"2020-06-03T13:13:55Z","modified":"2024-08-04T12:25:16Z","title":"An issue was discovered in Django 2.2 before 2.2.13 and 3.0 before 3.0.7","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02897,"percentile":0.87263,"provenance":"source"},"cwes":[],"references":[{"url":"https://usn.ubuntu.com/4381-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://usn.ubuntu.com/4381-2/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://www.debian.org/security/2020/dsa-4705","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://www.oracle.com/security-alerts/cpujan2021.html","tags":["x_refsource_MISC"]},{"url":"https://docs.djangoproject.com/en/3.0/releases/security/","tags":["x_refsource_MISC"]},{"url":"https://www.djangoproject.com/weblog/2020/jun/03/security-releases/","tags":["x_refsource_CONFIRM"]},{"url":"https://security.netapp.com/advisory/ntap-20200611-0002/","tags":["x_refsource_CONFIRM"]},{"url":"https://groups.google.com/forum/#%21msg/django-announce/pPEmb2ot4Fo/X-SMalYSBAAJ","tags":["x_refsource_MISC"]}],"priority":{"score":17.5,"factors":[{"name":"EPSS percentile","points":17.45}]},"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=2.2a1, <2.2.13",">=3.0a1, <3.0.7",">=2.2, <2.2.13",">=3.0, <3.0.7"],"patched":["2.2.13","3.0.7"],"from":["GHSA-2m34-jcjv-45xf","PYSEC-2020-32"],"provenance":"source"}],"summary":{"text":"The flaw lies in the Django admin's ForeignKeyRawIdWidget component, which affects Django 2.2 before 2.2.13 and 3.0 before 3.0.7, where query parameters it generates are not properly URL encoded. An attacker could exploit this to carry out cross-site scripting (XSS) against users of the affected admin interface.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:10Z"},"euvd":{"id":"EUVD-2020-0068","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-django-cve-2020-13596","children":[{"from":"CVE-2020-13596","to":"CVE-2024-41991","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["django/contrib/admin/widgets.py"],"commits":["https://github.com/django/django/commit/1f2dd37f6fcefdd10ed44cb233b2e62b520afb38","https://github.com/django/django/commit/6d61860b22875f358fac83d903dc629897934815","https://github.com/django/django/commit/523da8771bce321023f490f70d71a9e973ddc927","https://github.com/django/django/commit/efea1ef7e2190e3f77ca0651b5458297bc0f6a9f"],"basis":"shared function","functions":["get_context"]}]}],"packageHistory":[{"cve":"CVE-2020-7471","published":"2020-02-03","fixed":"3.0.3","kev":false},{"cve":"CVE-2020-9402","published":"2020-03-05","fixed":"3.0.4","kev":false,"link":{"from":"CVE-2020-9402","to":"CVE-2020-13596","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"2.2.11","toFixed":"2.2.13","daysApart":90},{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"3.0.4","toFixed":"3.0.7","daysApart":90}]}},{"cve":"CVE-2020-13254","published":"2020-06-03","fixed":"3.0.7","kev":false},{"cve":"CVE-2020-13596","published":"2020-06-03","fixed":"3.0.7","kev":false},{"cve":"CVE-2020-24583","published":"2020-09-01","fixed":"3.1.1","kev":false},{"cve":"CVE-2020-24584","published":"2020-09-01","fixed":"3.1.1","kev":false},{"cve":"CVE-2021-3281","published":"2021-02-02","fixed":"3.1.6","kev":false}],"package":"PyPI:Django"}}