Laravel TokenGuard authentication bypass through non-string API credentials
The source advisory has changed since this explanation was prepared. Check the current technical data and original advisory below.
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.
What to do
Upgrade laravel/framework to version 12.68.0, 13.29.0, or later.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | laravel/framework | >= 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 |
References
- https://github.com/laravel/framework/security/advisories/GHSA-f9x3-7vq9-cph6
- https://nvd.nist.gov/vuln/detail/CVE-2026-114509
- https://github.com/laravel/framework/commit/8dbb08bccac1be095dba4a9d259a419620f1e8a5
- https://github.com/laravel/framework/commit/9b21ce0a9bb2b2599978bc0b0df4abea952ad31c
- https://github.com/laravel/framework
- https://github.com/laravel/framework/releases/tag/v12.68.0
- https://github.com/laravel/framework/releases/tag/v13.29.0
- https://github.com/laravel/framework/commit/47781ee0cc09940c2d706623160e14d7c6eb6b36
- https://github.com/laravel/framework/commit/5056ca53797eed9244749695c3bb3f015a38415c
- https://github.com/laravel/framework/releases/tag/v10.50.4
- https://github.com/laravel/framework/releases/tag/v11.56.1
- https://github.com/laravel/framework/releases/tag/v13.27.0
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N- Weakness (CWE)
CWE-1287, CWE-287- Platform
- Composer
- Package
laravel/framework- Disclosed
- 23.10.2026
- Updated
- 10.11.2026 21:17
Sources and licenses · Edited or translated by DockRay; source rights and applicable licenses are retained.
OSV / GitHub Advisory Database - GHSA-f9x3-7vq9-cph6 - CC BY 4.0
Vulnerability history: laravel/framework
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 29
- First → latest
- 01.2021 11.2026
- Without a fix
- 0
- Exploited in attacks
- 1
Severity breakdown
- Critical 3
- High 11
- Medium 13
- Low 2
Disclosures per year
- 2021: 5
- 2022: 5
- 2023: 0
- 2024: 10
- 2025: 3
- 2026: 6
-
Laravel TokenGuard authentication bypass through non-string API credentials this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.