Advisory

GHSA-jh3w-4vvf-mjgr

Also known as: BIT-django-2023-36053, CVE-2023-36053, PYSEC-2023-100

Summary

Django has regular expression denial of service vulnerability in EmailValidator/URLValidator

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-07-03 15:30 UTC
Modified
2025-11-04 19:59 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 3.2a1, fixed 3.2.20 (ecosystem)

Fixed versions

3.2.20

Fix

  • Fixed version 3.2.20
    pip install --upgrade django==3.2.20

django

PyPI · All systems

Affected

  • introduced 4.0a1, fixed 4.1.10 (ecosystem)

Fixed versions

4.1.10

Fix

  • Fixed version 4.1.10
    pip install --upgrade django==4.1.10

django

PyPI · All systems

Affected

  • introduced 4.2a1, fixed 4.2.3 (ecosystem)

Fixed versions

4.2.3

Fix

  • Fixed version 4.2.3
    pip install --upgrade django==4.2.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences