Skip to content
Vulnerabilities

Update Laravel Now to Stop TokenGuard Authentication Bypass

A critical flaw in Laravel’s TokenGuard lets attackers bypass login checks on API routes by sending crafted credentials.

Update Laravel Now to Stop TokenGuard Authentication Bypass
Illustration: Malware Chronicle

Key points

  • Unauthenticated attackers can take over accounts on routes protected by TokenGuard.
  • The issue affects Laravel versions prior to 12.68.0 and 13.29.0.
  • Patches are available in the latest 12.68.0 and 13.29.0 releases.

Malicious actors can bypass authentication in Laravel applications by exploiting a flaw in the TokenGuard component. This vulnerability allows an attacker to send a crafted, non-string credential that the system fails to reject. When combined with specific MySQL or MariaDB configurations, this input causes the authentication lookup to match an unintended existing user. Consequently, an unauthenticated attacker gains access to accounts on API routes protected by this guard, effectively taking over the user session without valid credentials.

The National Vulnerability Database rates CVE-2026-114509 as critical, assigning it a CVSS score of 9.2. The flaw stems from weaknesses classified as CWE-287 and CWE-1287. It impacts Laravel framework versions earlier than 12.68.0 and versions from 13.0.0 up to, but not including, 13.29.0. Developers using these affected versions must apply the recent updates immediately to prevent unauthorized account access.

What we know

The vulnerability exists specifically when TokenGuard is configured as a standard token-based API guard. In this setup, the framework does not properly validate the data type of the incoming credential. Under certain database configurations using MySQL or MariaDB, the flawed logic allows the system to process the crafted input incorrectly. This misprocessing leads to an incorrect match against an existing user record in the database. The result is a complete authentication bypass on any route secured by this specific guard mechanism.

Defender's checklist

  • Verify your current Laravel framework version against the affected ranges.
  • Check if your application uses TokenGuard for API authentication.
  • Confirm your database backend is MySQL or MariaDB, which increases risk.
  • Review recent authentication logs for unusual or unexpected login successes.

What analysts watch for

Teams usually monitor for authentication events that lack corresponding valid token submissions. Analysts check whether login successes originate from sources sending non-standard data types or malformed credentials. They examine database query logs for lookups that match users without prior successful authentication attempts. Security teams also review API route access patterns for sudden spikes in successful logins from untrusted IPs, which may indicate exploitation of this bypass mechanism.

What to do and how to stay safe: Laravel

  • Upgrade your Laravel installation to version 12.68.0 or 13.29.0 immediately.
  • Audit your API routes to identify those relying on TokenGuard for security.
  • Review server logs for signs of unauthorized access attempts since the disclosure.
  • Ensure your database configurations are updated to mitigate similar injection risks.

Step-by-step guide: Security Advisories: Small Business Patching Strategy

General security guidance from the Malware Chronicle newsroom. It is not confirmed advice from the organisations named in this story.

Frequently asked questions

Which Laravel versions are affected by this vulnerability?

Versions prior to 12.68.0 and versions from 13.0.0 up to 13.29.0 are affected.

What is the severity of CVE-2026-114509?

The National Vulnerability Database rates it as critical with a CVSS score of 9.2.

Is there a fix available for this issue?

Yes, the issue is fixed in Laravel versions 12.68.0 and 13.29.0.

Sources

  1. CVE Program
LaravelCVE-2026-114509TokenGuardMySQLMariaDB

Related stories