HIGH7.5
PYSEC-2022-304
Quick fix
PYSEC-2022-304 — django: upgrade to the fixed version with the command below.
pip install --upgrade 'django>=5b6b257fa7ec37ff27965358800c67e2dd11c924'Details
In Django 3.2 before 3.2.16, 4.0 before 4.0.8, and 4.1 before 4.1.2, internationalized URLs were subject to a potential denial of service attack via the locale parameter, which is treated as a regular expression.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/django
Introduced in:
0Fixed in: 5b6b257fa7ec37ff27965358800c67e2dd11c924Fix
pip install --upgrade 'django>=5b6b257fa7ec37ff27965358800c67e2dd11c924'References
- https://docs.djangoproject.com/en/4.0/releases/security/[WEB]
- https://github.com/django/django/commit/5b6b257fa7ec37ff27965358800c67e2dd11c924[FIX]
- https://www.djangoproject.com/weblog/2022/oct/04/security-releases/[ARTICLE]
- https://groups.google.com/forum/#!forum/django-announce[WEB]
- https://github.com/advisories/GHSA-qrw5-5h28-6cmg[ADVISORY]