Feed
6.1MEDIUM

CVE-2026-53878Django: DomainNameValidator permits newline characters that may enable HTTP header injection

A medium-severity vulnerability reachable over the network, needing no privileges and user interaction. EPSS estimates a 0.3% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
0.3%
percentile 18%
Priority
18/100 low
how it is computed
Fix
Named by a source
CVE published 7 Jul 2026

Reference

None of the "Needs attention" rules apply right now.

EPSS 0.3% (+0) · Network attack vector (+10) · No privileges required (+5)

Immediate actions

Who should check

  • django (PyPI) pkg:pypi/django

    • Affected< 5.2.16Fixed in5.2.16OSV (GHSA-8qcx-xf44-272x)
    • Affected>= 6.0.0, < 6.0.7Fixed in6.0.7OSV (GHSA-8qcx-xf44-272x)
    • Affected>= 5.2, < 5.2.16Fixed in5.2.16OSV (PYSEC-2026-2092)
    • Affected>= 6.0, < 6.0.7Fixed in6.0.7OSV (PYSEC-2026-2092)
  • djangoproject django product:djangoproject/django

    • Affected>= 6.0, < 6.0.7Affected range ends before6.0.7as published by CNA (CVE List)
    • Affected>= 5.2, < 5.2.16Affected range ends before5.2.16as published by CNA (CVE List)
    • Affected>= 5.2, < 5.2.16Affected range ends before5.2.16as published by CPE data (via the NVD API)
    • Affected>= 6.0, < 6.0.7Affected range ends before6.0.7as published by CPE data (via the NVD API)

Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.

Confirmed facts

CVSS
6.1 MEDIUM (version 3.1)
Score from
CNA (6a34fbeb-21d4-45e7-8e0a-62b95bc12c92)
Attack vector
network
Attack complexity
low
Privileges required
none
User interaction
required
Weakness
CWE-144
Exploitation (CISA SSVC)
none
Automatable (CISA SSVC)
no
Assigned by
6a34fbeb-21d4-45e7-8e0a-62b95bc12c92

Unknowns

  • We show one CVSS score. Other sources may score this CVE differently.

Advisory text

Quoted from the source advisory (untrusted)An issue was discovered in Django 6.0 before 6.0.7 and 5.2 before 5.2.16. `DomainNameValidator` does not prohibit newlines in domain names (unless used via a form field, since `CharField` strips newlines). If an application uses values with newlines in an HTTP response, header injection can occur. Django itself is unaffected because `HttpResponse` prohibits newlines in HTTP headers. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Bence Nagy for reporting this issue.

Update history

  • 7 Jul 2026Published

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 30 min ago · osv 30 min ago · nvd 2 h ago · epss 30 min ago · JSON · ask via MCP: explain_vulnerability

Also known as BIT-django-2026-53878, GHSA-8qcx-xf44-272x, PYSEC-2026-2092