# CVE-2026-6873: Signed cookie salt namespace collision in django.http.HttpRequest.get_signed_cookie

- Severity: Low 2.3 (CVSS:4.0, scored by DSF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2026-06-03T13:16:03.924Z
- Modified: 2026-09-10T16:01:31.314Z
- Also known as: GHSA-h7pc-vwp9-298g, BIT-DJANGO-2026-6873, PYSEC-2026-199
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: DSF

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

(As written by CVE List.)

## Affected

- django: from 6.0 before 6.0.6; from 5.2 before 5.2.15 (not affected: 6.0.6; 5.2.15)
- django (PyPI): before 5.2.15; from 6.0.0 before 6.0.6; from 5.2 before 5.2.15; from 6.0 before 6.0.6
- djangoproject django: from 5.2 before 5.2.15; from 6.0 before 6.0.6
- django (Bitnami): from 5.2.0 before 5.2.15; from 6.0.0 before 6.0.6

## Every score

- DSF: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- DSF: CVSS:4.0 2.3 Low `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`
- GitHub: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Low `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`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://docs.djangoproject.com/en/dev/releases/security/> (advisory, fix, patch, vendor-advisory)
- <https://groups.google.com/g/django-announce> (advisory, article, mailing-list, release-notes, web)
- <https://www.djangoproject.com/weblog/2026/jun/03/security-releases/> (advisory, fix, patch, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6873> (advisory, web)
- <https://github.com/django/django/commit/594360cbf58be7f56eb6da96d58644297c99ef85> (web)
- <https://github.com/django/django/commit/70d36515b9cc71700105a14b275583070d48b689> (web)
- <https://github.com/django/django/commit/c807d9c398022d23cb27518fa6ecaf343efb30cf> (web)
- <https://docs.djangoproject.com/en/dev/releases/security> (web)
- <https://github.com/django/django> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-199.yaml> (web)
- <https://www.djangoproject.com/weblog/2026/jun/03/security-releases> (web)
- <https://github.com/advisories/GHSA-h7pc-vwp9-298g> (advisory)

## Sources

- CVE List: [CVE-2026-6873](https://www.cve.org/CVERecord?id=CVE-2026-6873), CVE Terms of Use, modified 2026-06-03
- GitHub Advisory Database: [GHSA-h7pc-vwp9-298g](https://github.com/advisories/GHSA-h7pc-vwp9-298g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-6873](https://nvd.nist.gov/vuln/detail/CVE-2026-6873), Public domain, modified 2026-07-21
- PyPA Advisory Database: [PYSEC-2026-199](https://osv.dev/vulnerability/PYSEC-2026-199), CC-BY-4.0, modified 2026-08-10
- Bitnami Vulnerability Database: [BIT-DJANGO-2026-6873](https://osv.dev/vulnerability/BIT-DJANGO-2026-6873), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-6873 · Whole record: https://cve.day/CVE-2026-6873.json · Rebuilt by cve.day 2026-11-25T22:59:23.636Z
