CVE-2021-44420Djangoproject Django
High 7.3 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 59
- CVSS 3.1
- 7.3
- EPSS
- 2.1% probability of exploitation in 30 days · percentile 82
- Auth required
- No
- Published
- Dec 8, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
What happens
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.
What to do
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django |
≥ 2.2a1 < 2.2.25 |
2.2.25 |
pip install "django>=2.2.25" |
| PyPI | django |
≥ 3.0a1 < 3.1.14 |
3.1.14 |
pip install "django>=3.1.14" |
| PyPI | django |
≥ 3.2a1 < 3.2.10 |
3.2.10 |
pip install "django>=3.2.10" |
| PyPI | django |
≥ 2.2 < 2.2.25 |
2.2.25 |
pip install "django>=2.2.25" |
| PyPI | django |
≥ 3.1 < 3.1.14 |
3.1.14 |
pip install "django>=3.1.14" |
| PyPI | django |
≥ 3.2 < 3.2.10 |
3.2.10 |
pip install "django>=3.2.10" |
Per OSV / GitHub Advisories (GHSA-v6rh-hp5x-86rv, PYSEC-2021-439). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≥ 2.2 < 2.2.25 |
| djangoproject | django | ≥ 3.1 < 3.1.14 |
| djangoproject | django | ≥ 3.2 < 3.2.10 |
| redhat | satellite | 6.0 |
| debian | debian_linux | 10.0 |
| debian | debian_linux | 11.0 |
| canonical | ubuntu_linux | 20.04 |
| canonical | ubuntu_linux | 21.04 |
| canonical | ubuntu_linux | 21.10 |
| fedoraproject | fedora | 35 |
Official sources
References
Links published by the sources. Open them with care.
- docs.djangoproject.com Patch Vendor Advisory
- groups.google.com
- lists.fedoraproject.org
- security.netapp.com Third Party Advisory
- www.djangoproject.com Patch Vendor Advisory
- www.openwall.com Mailing List Patch Third Party Advisory