CVE Catalog

CVE-2026-142636

MediumCVSS 6.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.42%

39th percentile - higher than 39% of all known CVEs

Summary

In Laravel before version 12.73.0, when an authenticated user is first resolved while Eloquent initializes an eager-loaded relation, relation constraints are temporarily disabled. A lazy key-constrained lookup made during that window (such as Sanctum's token owner lookup) runs without its key restriction, so the guard can return the lowest-ID user (often an administrator) instead of the token's owner.

Risk Assessment

A low-privilege token could read that user's data, and the wrong user remains cached for the rest of the request.

Recommendation

Upgrade Laravel to version 12.73.0 and avoid calling the guard inside a relation definition used with eager loading.

Other vulnerabilities in Laravel

See all
Original NVD description (English source)

Laravel is a web application framework. Prior to 12.73.0, When an authenticated user is first resolved while Eloquent is initializing an eager-loaded relation, Eloquent's relation constraints are temporarily disabled. A lazy key-constrained lookup made during that window, such as Sanctum's token owner lookup, runs without its key restriction. The guard can then return the lowest-ID user (often an administrator) instead of the token's owner. This affects applications that call the guard inside a relation definition used with eager loading, for example in optional-authentication routes. A low-privilege token could then read that user's data, and the wrong user remains cached for the rest of the request. Routes where authentication middleware resolves the user first were not affected in testing. This issue is fixed in version 12.73.0.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS