PT-2026-166354
CVE-2026-142636
·
Published
2026-12-02
·
Updated
2026-12-02
Description by
CVSS 3.1
6.8
MediumMetricsAV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions
Laravel versions prior to 12.73.0
Description
An issue exists where Eloquent relation constraints are temporarily disabled when an authenticated user is first resolved during the initialization of an eager-loaded relation. A lazy key-constrained lookup performed during this period, such as the token owner lookup in Sanctum, may execute without its key restriction. Consequently, the guard may return the user with the lowest ID, typically an administrator, instead of the actual token owner. This occurs in applications that invoke the guard within a relation definition used with eager loading, such as in optional-authentication routes. This allows a low-privilege token to access data belonging to the incorrectly resolved user, who then remains cached for the duration of the request.
Recommendations
Update Laravel to version 12.73.0.
Found an issue in the description? Have something to add? Feel free to write us 👾