Security mailing lists by PureSourceCode

CVE-2026-3902

HIGH 7.5CVSS 3.1

Django vulnerable to ASGI header spoofing via underscore/hyphen conflation

An issue was discovered in 6.0 before 6.0.4, 5.2 before 5.2.13, and 4.2 before 4.2.30.
ASGIRequest allows a remote attacker to spoof headers by exploiting an ambiguous mapping of two header variants (with hyphens or with underscores) to a single version with underscores.
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 Tarek Nakkouch for reporting this issue.

Published
7 Apr 2026
Last modified
26 Oct 2026
Assigned by
6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
NVD status
Analyzed
Weakness
CWE-290
Also known as
BIT-django-2026-3902GHSA-mvfq-ggxm-9mc5PYSEC-2026-51
Sources
NVDJSONOSV GHSA-mvfq-ggxm-9mc5JSONOSV PYSEC-2026-51JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
OSV PyPA CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 4.2, < 4.2.30 4.2.30
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 5.2, < 5.2.13 5.2.13
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 6.0, < 6.0.4 6.0.4
OSV PyPI django >= 6.0, < 6.0.4 6.0.4
OSV PyPI django >= 5.2, < 5.2.13 5.2.13
OSV PyPI django >= 4.2, < 4.2.30 4.2.30
OSV PyPI django >= 4.2, < 4.2.30; >= 5.2, < 5.2.13; >= 6.0, < 6.0.4 4.2.30, 5.2.13, 6.0.4

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 7 Apr 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Apr 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.