CVE-2023-46695Djangoproject 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
- 1.9% probability of exploitation in 30 days · percentile 80
- Auth required
- No
- Published
- Nov 2, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-770
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
An issue was discovered in Django 3.2 before 3.2.23, 4.1 before 4.1.13, and 4.2 before 4.2.7. The NFKC normalization is slow on Windows. As a consequence, django.contrib.auth.forms.UsernameField is subject to a potential DoS (denial of service) attack via certain inputs with a very large number of Unicode characters.
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 |
≥ 3.2a1 < 3.2.23 |
3.2.23 |
pip install "django>=3.2.23" |
| PyPI | django |
≥ 4.1a1 < 4.1.13 |
4.1.13 |
pip install "django>=4.1.13" |
| PyPI | django |
≥ 4.2a1 < 4.2.7 |
4.2.7 |
pip install "django>=4.2.7" |
| PyPI | django |
≥ 3.2 < 3.2.23 |
3.2.23 |
pip install "django>=3.2.23" |
| PyPI | django |
≥ 4.1 < 4.1.13 |
4.1.13 |
pip install "django>=4.1.13" |
| PyPI | django |
≥ 4.2 < 4.2.7 |
4.2.7 |
pip install "django>=4.2.7" |
Per OSV / GitHub Advisories (GHSA-qmf9-6jqf-j8fq, PYSEC-2023-222). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≥ 3.2 < 3.2.23 |
| djangoproject | django | ≥ 4.1 < 4.1.13 |
| djangoproject | django | ≥ 4.2. < 4.2.7 |
Official sources
References
Links published by the sources. Open them with care.
- docs.djangoproject.com Patch
- groups.google.com Permissions Required
- security.netapp.com
- www.djangoproject.com Patch Vendor Advisory