VDB
Sign up
HIGH7.5

PYSEC-2023-222

Quick fix

PYSEC-2023-222 — django: upgrade to the fixed version with the command below.

pip install --upgrade 'django>=3.2.23'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/django
Introduced in: 3.2Fixed in: 3.2.23
Fixpip install --upgrade 'django>=3.2.23'

References