CVE-2021-45116Djangoproject Django
High 7.5 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 2.0% probability of exploitation in 30 days · percentile 81
- Auth required
- No
- Published
- Jan 5, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
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.2 < 2.2.26 |
2.2.26 |
pip install "django>=2.2.26" |
| PyPI | django |
≥ 3.2 < 3.2.11 |
3.2.11 |
pip install "django>=3.2.11" |
| PyPI | django |
≥ 4.0 < 4.0.1 |
4.0.1 |
pip install "django>=4.0.1" |
| PyPI | django |
≥ 2.2 < 2.2.26 |
2.2.26 |
pip install "django>=2.2.26" |
| PyPI | django |
≥ 3.2 < 3.2.11 |
3.2.11 |
pip install "django>=3.2.11" |
| PyPI | django |
≥ 4.0 < 4.0.1 |
4.0.1 |
pip install "django>=4.0.1" |
Per OSV / GitHub Advisories (GHSA-8c5j-9r9f-c6w8, PYSEC-2022-2). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≥ 2.2 < 2.2.26 |
| djangoproject | django | ≥ 3.2 < 3.2.11 |
| djangoproject | django | ≥ 4.0 < 4.0.1 |
| 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