Live threats

All CVEs / Djangoproject

CVE-2022-41323Djangoproject Django

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
3.5%
probability of exploitation in 30 days · percentile 90
Auth required
No
Published
Oct 16, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django ≥ 3.2 < 3.2.16 3.2.16 pip install "django>=3.2.16"
PyPI django ≥ 4.0 < 4.0.8 4.0.8 pip install "django>=4.0.8"
PyPI django ≥ 4.1 < 4.1.2 4.1.2 pip install "django>=4.1.2"
PyPI django ≥ 3.2 < 3.2.16 3.2.16 pip install "django>=3.2.16"
PyPI django ≥ 4.0 < 4.0.8 4.0.8 pip install "django>=4.0.8"
PyPI django ≥ 4.1 < 4.1.2 4.1.2 pip install "django>=4.1.2"

Per OSV / GitHub Advisories (GHSA-qrw5-5h28-6cmg, PYSEC-2022-304). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectdjango≥ 3.2 < 3.2.16
djangoprojectdjango≥ 4.0 < 4.0.8
djangoprojectdjango≥ 4.1 < 4.1.2

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.