{"id":"ghsa-ghsa-vfxr-r8f8-gfmp","seq":13099091,"kind":"advisory","title":"Laravel: Sanctum guard can resolve the lowest-ID user when evaluated inside an eager-loaded Eloquent relation definition","url":"https://github.com/advisories/GHSA-vfxr-r8f8-gfmp","permalink":"https://vulnpulse.app/items/ghsa-ghsa-vfxr-r8f8-gfmp","summary":"影響: composer:laravel/framework < 12.73.0 → 12.73.0\nWhen 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…","severity":"medium","cvss":null,"techs":["php","laravel"],"cves":["CVE-2026-142636"],"tags":["GHSA-vfxr-r8f8-gfmp","laravel/framework"],"source":{"id":"ghsa","name":"GitHub Advisory Database"},"published_at":"2026-12-03T18:08:58.000Z","fetched_at":"2026-12-05T02:20:50.705Z"}