BuzzPHP
LightDarkSystem

Laravel TokenGuard authentication bypass through non-string API credentials

Critical severity. Published 23 October 2026. Update laravel/framework to the fixed version of your branch (13.27.0, 12.68.0, 11.56.1, 10.50.4): composer update laravel/framework.

Which versions are affected?

PackageAffected versionsFixed in
laravel/framework (opens in a new tab)>= 13.0.0, < 13.27.0 | >= 12.0.0, < 12.68.0 | >= 11.0.0, < 11.56.1 | < 10.50.413.27.0, 12.68.0, 11.56.1, 10.50.4

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show laravel/framework
composer audit

Advisory details

SeverityCritical
Published
Updated
CVECVE-2026-114509 (opens in a new tab)
GHSAGHSA-f9x3-7vq9-cph6 (opens in a new tab)
WeaknessCWE-287, CWE-1287

What the advisory says

Laravel's built-in TokenGuard, when configured with a standard token-based API guard, may be bypassed to authenticate as an arbitrary existing user without knowledge of their valid API token.

Under certain database configurations (MySQL/MariaDB) an attacker can submit a specially crafted, non-string credential value that is mishandled during the authentication lookup, causing the underlying query to match an unintended user record rather than failing authentication as expected.

Impact An unauthenticated attacker may authenticate as another user without possessing that user's API token, leading to authentication bypass and account takeover on any route protected by the affected guard.

Source: GHSA-f9x3-7vq9-cph6 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories