Skip to main content
VulnerabilityPublished Updated

CVE-2023-36053: django · ReDoS

Affects djangoSource CVE Database V5

0

Not known to be exploited · CVSS 7.5 High · fixed in 4.2.3 : patch django soon.

Data as of 26 Oct 2026, 13:47 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
2.9% chance of exploitation in 30 days – higher than 87% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.2.3, 4.1.10, 3.2.20
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Jul 2023

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade django to 4.2.3, 4.1.10 or 3.2.20.

Affected software

ProductAffectedFixed in
PyPIdjangopkg:pypi/djangoOther threatsAffected
  • <3.2.20
  • <4.1.10
  • <4.2.3
Fixed in
  • 3.2.20
  • 4.1.10
  • 4.2.3

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

European organizations should immediately assess their Django deployments to identify affected versions. The primary mitigation is to upgrade Django to versions 3.2.20, 4.1.10, or 4.2.3 and later, where the vulnerability has been addressed. Until upgrades can be applied, organizations should implement input validation controls at the application or web server level to limit the number of domain labels processed by EmailValidator and URLValidator, effectively reducing the risk of triggering ReDoS conditions. Rate limiting and web application firewalls (WAFs) can help detect and block suspicious requests with abnormally long domain names or excessive subdomain counts. Monitoring application performance and logs for unusual spikes in CPU usage or request latency related to email or URL validation is recommended to detect potential exploitation attempts. Developers should review custom validation logic to avoid similar ReDoS patterns and consider alternative validation libraries that are resistant to such attacks. Finally, organizations should maintain an incident response plan to quickly address denial of service incidents and communicate transparently with stakeholders.

Description

In Django 3.2 before 3.2.20, 4 before 4.1.10, and 4.2 before 4.2.3, EmailValidator and URLValidator are subject to a potential ReDoS (regular expression denial of service) attack via a very large number of domain name labels of emails and URLs.

References

Community reviews

Loading reviews…