VDB
KO

PYSEC-2021-99

Details

In Django 2.2 before 2.2.24, 3.x before 3.1.12, and 3.2 before 3.2.4, URLValidator, validate_ipv4_address, and validate_ipv46_address do not prohibit leading zero characters in octal literals. This may allow a bypass of access control that is based on IP addresses. (validate_ipv4_address and validate_ipv46_address are unaffected with Python 3.9.5+..) .

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI / django
Introduced in: 2.2 Fixed in: 2.2.24
Fix pip install --upgrade 'django>=2.2.24'

References