Description
CakePHP Authentication is an authentication plugin for CakePHP that can also be used in PSR-7 based applications. Prior to 2.11.1, 3.3.6, and 4.1.1, the getLoginRedirect() method contains a weakness to backslash bypasses that allows redirect targets with attacker-controlled hostnames through the redirect query string parameter. This issue is fixed in versions 2.11.1, 3.3.6, and 4.1.1.
Published: 2026-07-09
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the CakePHP Authentication plugin’s getLoginRedirect() method. It allows an attacker to construct a redirect query string that contains backslashes to bypass the host validation logic. When a user follows such a redirect, the application will send them to an arbitrary external site controlled by the attacker. This constitutes an open redirect flaw (CWE‑601) that can be exploited for phishing, social‑engineering, or to deliver malware via misleading URLs. The flaw does not directly compromise the application’s data or services, but it undermines user trust and can facilitate downstream attacks.

Affected Systems

All releases of the CakePHP Authentication plugin prior to version 2.11.1 for CakePHP 2, 3.3.6 for CakePHP 3, and 4.1.1 for CakePHP 4 are affected. The vulnerability has been fixed in those release numbers and any later releases.

Risk and Exploitability

The CVSS score of 5.1 classifies the issue as medium severity, while the EPSS of less than 1 % indicates a low probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog. The most likely attack vector involves an attacker embedding a crafted redirect parameter into a URL or link that a user is sent to, after which the victim’s browser is redirected to a malicious destination. Because the redirect occurs after user authentication, an attacker must gain access to a page or link that triggers the redirect, but the method requires no special privileges beyond user interaction.

Generated by OpenCVE AI on July 28, 2026 at 08:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade CakePHP Authentication to version 2.11.1, 3.3.6, 4.1.1, or a later release where the redirect validation has been corrected.
  • Add server‑side validation to the redirect target to ensure it points to the same host or to a pre‑approved whitelist of domains, rejecting any requests that do not satisfy these constraints.
  • If the redirect feature is not required for your application, disable it or remove the redirect query parameter entirely to eliminate the attack surface.

Generated by OpenCVE AI on July 28, 2026 at 08:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-hhpq-7wg4-36jm CakePHP Authentication: Open redirect weakness via backslash bypass
History

Fri, 10 Jul 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Cakephp
Cakephp authentication
Vendors & Products Cakephp
Cakephp authentication

Thu, 09 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 09 Jul 2026 19:15:00 +0000

Type Values Removed Values Added
Description CakePHP Authentication is an authentication plugin for CakePHP that can also be used in PSR-7 based applications. Prior to 2.11.1, 3.3.6, and 4.1.1, the getLoginRedirect() method contains a weakness to backslash bypasses that allows redirect targets with attacker-controlled hostnames through the redirect query string parameter. This issue is fixed in versions 2.11.1, 3.3.6, and 4.1.1.
Title CakePHP: Open redirect weakness via backslash bypass
Weaknesses CWE-601
References
Metrics cvssV4_0

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


Subscriptions

Cakephp Authentication
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-09T19:18:12.885Z

Reserved: 2026-06-16T23:18:03.170Z

Link: CVE-2026-55590

cve-icon Vulnrichment

Updated: 2026-07-09T19:18:08.745Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-28T08:45:04Z

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')