GHSA-f9x3-7vq9-cph6

Laravel TokenGuard authentication bypass through non-string API credentials

At a glance

Published
Updated
CVE
CVE-2026-114509
CVSS_V4
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

Description

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.

Affected packages

PackageVersions
Packagist · laravel/frameworkintroduced 13.0.0, fixed 13.29.0
Packagist · laravel/frameworkintroduced 0, fixed 12.68.0

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database