{"id":"CVE-2026-6873","published":"2026-06-03T13:16:03Z","modified":"2026-06-03T15:43:58Z","title":"Signed cookie salt namespace collision in django.http.HttpRequest.get_signed_cookie","vendor":"djangoproject","product":"Django","tier":"tail","description":{"text":"An issue was discovered in Django 6.0 before 6.0.6 and 5.2 before 5.2.15.\n`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.\nEarlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.\nDjango would like to thank Peng Zhou for reporting this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.1,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00245,"percentile":0.16057,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["vendor-advisory"]},{"url":"https://groups.google.com/g/django-announce","tags":["mailing-list"]},{"url":"https://www.djangoproject.com/weblog/2026/jun/03/security-releases/","tags":["vendor-advisory"]}],"priority":{"score":5.4,"factors":[{"name":"EPSS percentile","points":3.21},{"name":"CVSS severity","points":2.17}]},"vendorSlug":"djangoproject","affectedVersions":[{"vendor":"djangoproject","product":"Django","versions":[">= 6.0, < 6.0.6",">= 5.2, < 5.2.15"]}],"fixedVersions":[{"vendor":"djangoproject","product":"Django","versions":["6.0.6","5.2.15"]}],"capec":[{"id":"CAPEC-475","name":"Signature Spoofing by Improper Validation"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-03T15:43:52.491634Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"django","vulnerableRanges":["<5.2.15",">=6.0.0, <6.0.6",">=5.2, <5.2.15",">=6.0, <6.0.6"],"patched":["5.2.15","6.0.6"],"from":["GHSA-h7pc-vwp9-298g","PYSEC-2026-199"],"provenance":"source"}],"summary":{"text":"Django's django.http.HttpRequest.get_signed_cookie method, in versions 6.0 before 6.0.6 and 5.2 before 5.2.15, derives signing salts by concatenating the cookie name and the salt argument, so distinct name and salt pairs can produce the same value. A remote attacker with low privileges can exploit this, with high attack complexity, to reuse a signed cookie in a different context than the one where it was signed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:05Z"},"euvd":{"id":"EUVD-2026-34086","exploited":false,"provenance":"source"}}