CVE-2026-119416

CakePHP through 5.4.3 Cookie Leakage via HTTP Client CookieCollection Domain Matching

Published Oct 30, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 5, 2026, 9:13 PM
Reserved
Oct 30, 2026, 2:41 AM
Status
Deferred
Published
Oct 30, 2026, 12:16 PM
Modified
Nov 5, 2026, 10:17 PM