django: possible XSS via admin ForeignKeyRawIdWidget
Published Jun 3, 2020
5.3
MEDIUMCVSS 4.0
EPSS 2.90%
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.
Affected products
No data.
Configuration 1
- ≥ 2.2 · < 2.2.13
- ≥ 3.0 · < 3.0.7
Configuration 2
- 32
Configuration 3
- 14.04
- 16.04
- 18.04
- 19.10
- 20.04
Configuration 4
- n/a
- n/a
Configuration 5
- 9.0
- 10.0
Configuration 6
- 8.8
No data.
Red Hat Ceph Storage 2
python-django
Out of support scope
Red Hat Ceph Storage 3
python-django
Will not fix
Red Hat OpenStack Platform 10 (Newton)
python-django
Out of support scope
Red Hat OpenStack Platform 13 (Queens)
python-django
Fix deferred
Red Hat OpenStack Platform 15 (Stein)
python-django
Fix deferred
Red Hat OpenStack Platform 15 (Stein)
python-django20
Out of support scope
Red Hat OpenStack Platform 16 (Train)
python-django
Fix deferred
Red Hat Satellite 6
python-django
Will not fix
Red Hat Storage 3
python-django
Fix deferred
Red Hat Update Infrastructure 3 for Cloud Providers
python-django
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ceph Storage 2 | python-django | Out of support scope | n/a |
| Red Hat Ceph Storage 3 | python-django | Will not fix | n/a |
| Red Hat OpenStack Platform 10 (Newton) | python-django | Out of support scope | n/a |
| Red Hat OpenStack Platform 13 (Queens) | python-django | Fix deferred | n/a |
| Red Hat OpenStack Platform 15 (Stein) | python-django | Fix deferred | n/a |
| Red Hat OpenStack Platform 15 (Stein) | python-django20 | Out of support scope | n/a |
| Red Hat OpenStack Platform 16 (Train) | python-django | Fix deferred | n/a |
| Red Hat Satellite 6 | python-django | Will not fix | n/a |
| Red Hat Storage 3 | python-django | Fix deferred | n/a |
| Red Hat Update Infrastructure 3 for Cloud Providers | python-django | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
The following products ship the flawed code, however they do not make use of ForeignKeyRawIdWidget and are therefore not vulnerable to this flaw: * Red Hat Satellite 6 * Red Hat Update Infrastructure 3 * Red Hat OpenStack Platform 13, 15, & 16 * Red Hat Gluster Storage 3 The version of python-django shipped with Red Hat Ceph Storage(RHCS) was used with calamari and graphite which are no more supported, hence the django package will not be fixed for RHCS.
Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1 other source (Red Hat) ▾
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
No CVSS v3.0 score for this CVE.
AV:N/AC:M/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (20 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.90% (0.02897) | 86.45th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.87% (0.02873) | 84.94th | v5 (v2026.06.15) |
| Mar 30, 2025 | 1.08% (0.01080) | 75.84th | v4 (v2025.03.14) |
| Mar 29, 2025 | 3.21% (0.03209) | 78.23th | v4 (v2025.03.14) |
| Mar 24, 2025 | 1.08% (0.01080) | 75.81th | v4 (v2025.03.14) |
| Mar 23, 2025 | 2.24% (0.02244) | 81.43th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.11% (0.01107) | 76.60th | v4 (v2025.03.14) |
| Dec 17, 2024 | 0.16% (0.00160) | 52.96th | v3 (v2023.03.01) |
| Apr 7, 2024 | 2.27% (0.02273) | 89.42th | v3 (v2023.03.01) |
| Nov 8, 2023 | 2.34% (0.02341) | 88.56th | v3 (v2023.03.01) |
| Oct 22, 2023 | 1.35% (0.01355) | 84.69th | v3 (v2023.03.01) |
| Sep 3, 2023 | 1.55% (0.01554) | 85.59th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.78% (0.00783) | 78.67th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.54% (0.01537) | 74.52th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.54% (0.01537) | 72.41th | v2 (v2022.01.01) |
| Feb 4, 2022 | 11.61% (0.11613) | 88.84th | v2 (v2022.01.01) |
| Feb 3, 2022 | 8.66% (0.08659) | 85.81th | v1 |
| Jan 6, 2022 | 8.66% (0.08659) | 85.64th | v1 |
| Jan 5, 2022 | 2.07% (0.02069) | 78.02th | v5 (v2026.06.15) |
| Apr 14, 2021 | 2.07% (0.02069) | 0.00th | v1 |
References (19)
- https://access.redhat.com/security/cve/CVE-2020-13596 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1843625 Issue Tracking
- https://docs.djangoproject.com/en/3.0/releases/security x_refsource_MISCRelease NotesVendor Advisory
- https://github.com/advisories/GHSA-2m34-jcjv-45xf Advisory
- https://github.com/django/django/commit/1f2dd37f6fcefdd10ed44cb233b2e62b520afb38
- https://github.com/django/django/commit/6d61860b22875f358fac83d903dc629897934815
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2020-32.yaml
- https://groups.google.com/forum/#!msg/django-announce/pPEmb2ot4Fo/X-SMalYSBAAJ
- https://groups.google.com/forum/#%21msg/django-announce/pPEmb2ot4Fo/X-SMalYSBAAJ x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ
- https://nvd.nist.gov/vuln/detail/CVE-2020-13596
- https://security.netapp.com/advisory/ntap-20200611-0002 x_refsource_CONFIRMThird Party Advisory
- https://usn.ubuntu.com/4381-1 vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/4381-2 vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2020-13596
- https://www.debian.org/security/2020/dsa-4705 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://www.djangoproject.com/weblog/2020/jun/03/security-releases x_refsource_CONFIRMRelease NotesVendor Advisory
- https://www.oracle.com/security-alerts/cpujan2021.html x_refsource_MISCPatchThird Party Advisory
Change history (0)
No recorded changes yet.