Skip to content
Fencer Vulns
medium 6.1

CVE-2026-53878 json

Header injection possibility since DomainNameValidator accepted newlines in input

published 2026-07-07 4 mo ago modified 2026-10-25 14 d ago also BIT-django-2026-53878 , EUVD-2026-42045 , GHSA-8qcx-xf44-272x , PYSEC-2026-2092

cvss
6.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 25%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi django 5.2.16, 6.0.7
  • bitnami django 5.2.16, 6.0.7
  • djangoproject Django 5.2.16, 6.0.7
  • python-django Debian 14 3:5.2.16-1

debian advisories DEBIAN-CVE-2026-53878

  • python-Django5 openSUSE Tumbleweed 5.2.16-1.1
  • python-Django openSUSE Leap 16.0 5.2.4-bp160.10.1
  • python-Django openSUSE Tumbleweed 5.2.16-1.1
  • python-Django6 openSUSE Tumbleweed 6.0.7-1.1

opensuse advisories openSUSE-SU-2026:11270-1openSUSE-SU-2026:21313-1openSUSE-SU-2026:11248-1openSUSE-SU-2026:11236-1

  • py3-django Alpine 3.24 5.2.16-r0

alpine advisories ALPINE-CVE-2026-53878

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-53878 updated cvss 3.7

django: Django: HTTP header injection via DomainNameValidator accepting newlines

  • Red Hat Ansible Automation Platform 2 automation-controller 4.5.33-1.el9ap, ansible-automation-platform-26/hub-rhel9, ansible-automation-platform-27/hub-rhel9, ansible-automation-platform-26/gateway-rhel9, ansible-automation-platform-27/gateway-rhel9, ansible-automation-platform-24/lightspeed-rhel8, +11 more Red Hat Discovery 2 discovery/discovery-server-rhel9 Red Hat Satellite 6 satellite/iop-advisor-backend-rhel9 Red Hat Self-service automation portal 2 ansible-automation-platform/bootc-automation-portal-rhel9
    affected: workaround, no fix available “Fix deferred”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
4 mo ago

Exploit prediction

0.33% chance of exploitation in the next 30 days, higher than 25% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CNA 4.0 5.3 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
GitHub 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CNA 4.0 5.3 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected packages

ecosystem package affected fixed in
pypi django
<5.2.16
>=6.0.0, <6.0.7
>=5.2, <5.2.16
>=6.0, <6.0.7
5.2.16
6.0.7
bitnami django
>=5.2.0, <5.2.16
>=6.0.0, <6.0.7
5.2.16
6.0.7

Affected products

  • djangoproject Django

Classification

Weakness
  • CWE-144 Improper Neutralization of Line Delimiters
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.