Description
CakePHP through 5.4.3 contains an improper cookie domain validation vulnerability in the Http Client CookieCollection that allows malicious servers to receive and plant cookies by abusing unanchored suffix matching. Attackers controlling a host such as one ending in a victim domain suffix, or sending Set-Cookie Domain values for unrelated hosts, can steal session cookies or inject cookies into shared client cookie jars.
Published: 2026-10-30
Score: 6.3 Medium
EPSS: n/a
KEV: No
Impact: Cookie leakage and session hijacking
Action: Immediate Patch
AI Analysis

Impact

CakePHP versions up to 5.4.3 contain an Http Client CookieCollection that validates cookie domains using unanchored suffix matching. Attackers who control a host sharing a domain suffix with the victim or who can inject Set‑Cookie headers with a crafted Domain attribute can read or inject cookies into the shared client cookie jar. This flaw can expose session tokens and allow tampering with authentication data, compromising both confidentiality and integrity.

Affected Systems

All installations of CakePHP 5.4.3 or earlier that use the Http Client CookieCollection are affected. The vulnerable component is maintained by the cakephp:cakephp project; no specific third‑party editions are listed.

Risk and Exploitability

The vulnerability carries a CVSS score of 6.3, indicating medium severity. EPSS data is not available and the flaw is not cataloged in CISA's KEV, suggesting limited current exploitation. Nonetheless, the attack requires control of a domain that matches a victim suffix or the ability to deliver malicious Set‑Cookie headers, which can be achieved via compromised DNS or proxy services. Because the attack path is remote and does not require privileged local access, a cautious risk assessment recommends prompt remediation.

Generated by OpenCVE AI on October 30, 2026 at 12:51 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the CakePHP framework to the latest released version that contains the patched CookieCollection domain validation logic.
  • If an upgrade cannot occur immediately, apply the source‑code fix from the official commits or pull request that enforces anchored domain matching in the CookieCollection class.
  • Disable cookie persistence in the HttpClient configuration unless it is explicitly required, setting the client’s cookie handling to false or restricting the cookie jar to exact host matches.

Generated by OpenCVE AI on October 30, 2026 at 12:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 11:45:00 +0000

Type Values Removed Values Added
Description CakePHP through 5.4.3 contains an improper cookie domain validation vulnerability in the Http Client CookieCollection that allows malicious servers to receive and plant cookies by abusing unanchored suffix matching. Attackers controlling a host such as one ending in a victim domain suffix, or sending Set-Cookie Domain values for unrelated hosts, can steal session cookies or inject cookies into shared client cookie jars.
Title CakePHP through 5.4.3 Cookie Leakage via HTTP Client CookieCollection Domain Matching
First Time appeared Cakephp
Cakephp cakephp
Weaknesses CWE-346
CPEs cpe:2.3:a:cakephp:cakephp:*:*:*:*:*:*:*:*
Vendors & Products Cakephp
Cakephp cakephp
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-30T11:30:48.754Z

Reserved: 2026-10-30T02:41:10.809Z

Link: CVE-2026-119416

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-30T12:16:38.043

Modified: 2026-10-30T12:16:38.043

Link: CVE-2026-119416

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T13:00:15Z

Weaknesses