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?
| Package | Affected versions | Fixed 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.4 | 13.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 auditAdvisory details
| Severity | Critical |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-114509 (opens in a new tab) |
| GHSA | GHSA-f9x3-7vq9-cph6 (opens in a new tab) |
| Weakness | CWE-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
- Laravel: Task Output Injection - Concurrency Process (opens in a new tab) (low, 13 November 2026)
- Laravel relationship inclusion can trigger unauthorized data destruction (opens in a new tab) (medium, 23 October 2026)
- Laravel: XSS in Debug Page Information (opens in a new tab) (low, 29 September 2026)