MediumGHSA-v6rh-hp5x-86rvBIT-django-2021-44420CVE-2021-44420PYSEC-2021-439
Potential bypass of an upstream access control based on URL paths in Django
Published 9 Dec 2021 · Updated 19 Nov 2024
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
djangoPyPI
- Affected
- >=2.2a1 <2.2.25
- Fixed in
- 2.2.25
Update to the fixed version for your release line, for example:
pip install 'django>=2.2.25'djangoPyPI
- Affected
- >=3.0a1 <3.1.14
- Fixed in
- 3.1.14
Update to the fixed version for your release line, for example:
pip install 'django>=3.1.14'djangoPyPI
- Affected
- >=3.2a1 <3.2.10
- Fixed in
- 3.2.10
Update to the fixed version for your release line, for example:
pip install 'django>=3.2.10'Details
In Django 2.2 before 2.2.25, 3.1 before 3.1.14, and 3.2 before 3.2.10, HTTP requests for URLs with trailing newlines could bypass upstream access control based on URL paths. This issue has low severity, according to the Django security policy.
Is GHSA-v6rh-hp5x-86rv 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-44420
- Linkgithub.com/django/django/commit/d4dcd5b9dd9e462fec8220e33e3e6c822b7e88a6
- Linkdocs.djangoproject.com/en/3.2/releases/security
- Advisorygithub.com/advisories/GHSA-v6rh-hp5x-86rv
- Packagegithub.com/django/django
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-439.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-20211229-0006
- Linkwww.djangoproject.com/weblog/2021/dec/07/security-releases
- Linkwww.openwall.com/lists/oss-security/2021/12/07/1
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.