CVE-2021-44420 — Vulnerability in django — CVE Details
Potential bypass of an upstream access control based on URL paths in Django
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (2.09%). Schedule for your next planned update.
Does your project use an affected django version?
Paste your requirements.txt to check it for CVE-2021-44420 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published December 9, 2021 (1813 days ago).
- Last revised November 19, 2024 — 1075 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "django>=2.2.25"
pip install "django>=3.1.14"
pip install "django>=3.2.10"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: PyPI (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-287Improper AuthenticationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-44420ADVISORY
- https://github.com/django/django/commit/d4dcd5b9dd9e462fec8220e33e3e6c822b7e88a6WEB
- https://docs.djangoproject.com/en/3.2/releases/securityWEB
- https://github.com/advisories/GHSA-v6rh-hp5x-86rvADVISORY
- https://github.com/django/djangoPACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-439.yamlWEB
- https://groups.google.com/forum/#!forum/django-announceWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDVWEB
- https://security.netapp.com/advisory/ntap-20211229-0006WEB
- https://www.djangoproject.com/weblog/2021/dec/07/security-releasesWEB
- https://www.openwall.com/lists/oss-security/2021/12/07/1WEB
Frequently Asked Questions
- What is CVE-2021-44420?
- Potential bypass of an upstream access control based on URL paths in Django. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 7.3/10).
- How do I check if my project is affected by CVE-2021-44420?
- CVE-2021-44420 affects django. It has a 2.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-44420 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top quartile of EPSS-scored vulnerabilities — 82.2% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-1285HIGH
- CVE-2026-1287MEDIUM
- CVE-2023-41164MEDIUM
Django Denial of service vulnerability in django.utils.encoding.uri_to_iri
- CVE-2025-48432MEDIUM
Django Improper Output Neutralization for Logs vulnerability
- CVE-2025-26699MEDIUM
Django Vulnerable to Allocation of Resources Without Limits or Throttling
- CVE-2021-28658
- CVE-2021-31542
- CVE-2024-41989