Information disclosure in Django
Published 12 Jan 2022 · Updated 21 Feb 2025
Is your project on an affected django?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=2.2 <2.2.26
- Fixed in
- 2.2.26
pip install 'django>=2.2.26'- Affected
- >=3.2 <3.2.11
- Fixed in
- 3.2.11
pip install 'django>=3.2.11'- Affected
- >=4.0 <4.0.1
- Fixed in
- 4.0.1
pip install 'django>=4.0.1'Details
An issue was discovered in Django 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1. Due to leveraging the Django Template Language's variable resolution logic, the dictsort template filter was potentially vulnerable to information disclosure, or an unintended method call, if passed a suitably crafted key.
Is GHSA-8c5j-9r9f-c6w8 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected django, and gives you the command that fixes it.
More advisories for django
- HighCVE-2026-15307Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing · 4 Aug 2026
- MediumCVE-2026-15830Django GeoDjango vulnerable to denial of service through deeply nested geometry collections · 4 Aug 2026
- MediumCVE-2026-53878Django: DomainNameValidator permits newline characters that may enable HTTP header injection · 7 Jul 2026
- MediumCVE-2026-53877 Django: GDALRaster may over-read heap memory when constructed from bytes · 7 Jul 2026
- LowCVE-2026-48588Django: cache middleware may expose private responses when unrelated request cookies are present · 7 Jul 2026
- LowCVE-2026-8404Django: UpdateCacheMiddleware may disclose cached responses due to case-sensitive Cache-Control handling · 3 Jun 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-45116
- Linkgithub.com/django/django/commit/2a8ec7f546d6d5806e221ec948c5146b55bd7489
- Linkgithub.com/django/django/commit/c7fe895bca06daf12cc1670b56eaf72a1ef27a16
- Linkgithub.com/django/django/commit/c9f648ccfac5ab90fb2829a66da4f77e68c7f93a
- Linkdocs.djangoproject.com/en/4.0/releases/security
- Advisorygithub.com/advisories/GHSA-8c5j-9r9f-c6w8
- Packagegithub.com/django/django
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-2.yaml
- Linkgroups.google.com/forum/#!forum/django-announce
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV
- Linksecurity.netapp.com/advisory/ntap-20220121-0005
- Linkwww.djangoproject.com/weblog/2022/jan/04/security-releases
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.