Description
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.
Published: 2026-06-03
Score: 2.3 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises from Django's get_signed_cookie method, which derives a signing key by concatenating the cookie name and a provided salt. This concatenation is not injective, allowing two distinct (name, salt) pairs that produce the same combined key, exposing an Insecure Key Derivation flaw (CWE-303) and a misuse of cookie names (CWE-347). Consequently, an attacker can use a cookie that was signed for one name in a different context where a different (name, salt) pair produces the same key, effectively bypassing the intended isolation between cookies.

Affected Systems

Django versions 6.0 up to 6.0.5 and 5.2 up to 5.2.14 are vulnerable. The affected series include Django 6.0 and 5.2. Unverified older series such as 5.0.x, 4.1.x, and 3.2.x may also be impacted, but have not been evaluated by Django and therefore may remain vulnerable.

Risk and Exploitability

The CVSS score of 2.3 indicates low severity, highlighting modest impact when the flaw is exploited. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a network‑based request where the attacker injects a crafted signed cookie into an HTTP request; this inference is based on the fact that the flaw involves signed cookie handling in django.http.HttpRequest.get_signed_cookie.

Generated by OpenCVE AI on June 4, 2026 at 01:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Django 6.0.6 or newer, or Django 5.2.15 or newer to receive the fix.
  • If running an older unsupported series (e.g., 5.0.x, 4.1.x, 3.2.x), plan to upgrade to a supported release with the patch, or apply a temporary manual review of signed cookie usage.
  • Review application code that calls django.http.HttpRequest.get_signed_cookie and enforce that each cookie name uses a unique salt, avoiding reuse across different contexts until an official patch is applied.

Generated by OpenCVE AI on June 4, 2026 at 01:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 04 Jun 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-303
References
Metrics threat_severity

None

threat_severity

Low


Wed, 03 Jun 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 03 Jun 2026 15:45:00 +0000

Type Values Removed Values Added
First Time appeared Djangoproject
Djangoproject django
Vendors & Products Djangoproject
Djangoproject django

Wed, 03 Jun 2026 14:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Signed cookie salt namespace collision in django.http.HttpRequest.get_signed_cookie
Weaknesses CWE-347
References
Metrics cvssV3_1

{'score': 3.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 2.3, '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'}


Subscriptions

Djangoproject Django
cve-icon MITRE

Status: PUBLISHED

Assigner: DSF

Published:

Updated: 2026-06-03T15:43:58.829Z

Reserved: 2026-04-22T18:12:39.603Z

Link: CVE-2026-6873

cve-icon Vulnrichment

Updated: 2026-06-03T15:43:56.065Z

cve-icon NVD

Status : Undergoing Analysis

Published: 2026-06-03T14:16:46.483

Modified: 2026-06-04T15:21:14.080

Link: CVE-2026-6873

cve-icon Redhat

Severity : Low

Publid Date: 2026-06-03T13:16:03Z

Links: CVE-2026-6873 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-06-04T01:45:46Z

Weaknesses