CVE-2026-6873CWE-347

Signed cookie salt namespace collision in django.http.HttpRequest.get_signed_cookie

Low · published June 3, 2026

CVSS v4.0
2.3
EPSS
0%
Percentile
19.5
In the wild
Unconfirmed
What it is

An 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.

The record
Technical detail
CVSS v4.0
2.3 · LOW
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
EPSS
0.00281 · 19.5th percentile
Weakness
CWE-347 · Improper Verification of Cryptographic Signature
Published
2026-06-03T13:16Z
EPSS history
Timeline
  • 03 JUN 13:16Z
    Signed cookie salt namespace collision in django.http.HttpRequest.get_signed_cookie
    cvelistv5