NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
HIGH severity

CVE-2023-46695 — django

HIGHFix: django/django@048a9eb

CVE-2023-46695 is a high-severity (CVSS 7.5) CWE-770 vulnerability in django. EPSS puts its 30-day exploitation probability at 53.4% (99th percentile). A fix is available for django — see the affected versions and patch details below.

Django potential denial of service vulnerability in UsernameField on Windows

Also known asBIT-django-2023-46695GHSA-qmf9-6jqf-j8fqPYSEC-2023-222
Published
Updated
Affected
3 pkgs
Patched
3 / 3
Exploits
None indexed
Exploitation data as of Nov 5, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
53.4%probability of exploitation in next 30 days
High Risk+3.67%
Lower risk than most CVEs99th percentile — riskier than 99% of all scored CVEsHighest risk
0.00%22.8%45.6%68.4%3.6%53.4%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

3 pkgs affected
🐍django🐍django🐍django

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

Description

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.

Affected Packages

3 total 3 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIdjango≥ 3.2a1&&< 3.2.233.2.23pip install --upgrade 'django==3.2.23'
🐍PyPIdjango≥ 4.1a1&&< 4.1.134.1.13pip install --upgrade 'django==4.1.13'
🐍PyPIdjango≥ 4.2a1&&< 4.2.74.2.7pip install --upgrade 'django==4.2.7'

Affected Products

1 product · 3 configurations
Application
djangodjangoproject
≥ 4.2. && < 4.2.7
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for django, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update django to 3.2.23 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2023-46695 is resolved across your whole dependency graph.

  3. Workarounds

    Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2023-46695 in your dependencies?

Find it across PyPI, including transitive dependencies.

CVE-2023-46695: django DoS — Fixed in 3.2.23