CVE-2026-6873

NameCVE-2026-6873
DescriptionAn issue was discovered in Django 6.0 before 6.0.6 and 5.2 before 5.2.15. `django.http.HttpRequest.get_signed_cookie` in Django uses a non-injective salt derivation (concatenating the cookie name and salt argument), which allows a remote attacker to use a cookie in a context different from the one where it was signed, via distinct `(name, salt)` pairs that produce the same concatenation. 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 Peng Zhou for reporting this issue.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1138775

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-django (PTS)bullseye2:2.2.28-1~deb11u2vulnerable
bullseye (security)2:2.2.28-1~deb11u12vulnerable
bookworm, bookworm (security)3:3.2.25-0+deb12u2vulnerable
trixie (security), trixie3:4.2.28-0+deb13u1vulnerable
forky3:4.2.30-1vulnerable
sid3:5.2.15-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-djangosource(unstable)3:5.2.15-11138775

Notes

[trixie] - python-django <no-dsa> (Minor issue)
[bookworm] - python-django <no-dsa> (Minor issue)
[bullseye] - python-django <postponed> (Minor issue)
https://www.djangoproject.com/weblog/2026/jun/03/security-releases/
Fixed by: https://github.com/django/django/commit/594360cbf58be7f56eb6da96d58644297c99ef85 (5.2.15)

Search for package or bug name: Reporting problems