CVE-2026-142636
MEDIUM 6.8CVSS 3.1Laravel: Sanctum guard can resolve the lowest-ID user when evaluated inside an eager-loaded Eloquent relation definition
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.
- Published
- 2 Dec 2026
- Last modified
- 3 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-863
- Also known as
- GHSA-vfxr-r8f8-gfmp
- Sources
- NVDJSONCVE ListJSONOSV GHSA-vfxr-r8f8-gfmpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| CVE List | GitHub_M | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | laravel | framework | = < 12.73.0 | |
| OSV | Packagist | laravel/framework | < 12.73.0 | 12.73.0 |
References
- https://github.com/laravel/framework/commit/6ea0fda8128e36e912e7fde755dac345bde9f5f7 · x_refsource_MISC, WEB
- https://github.com/laravel/framework/pull/62483 · x_refsource_MISC, WEB
- https://github.com/laravel/framework/releases/tag/v12.73.0 · x_refsource_MISC, WEB
- https://github.com/laravel/framework/security/advisories/GHSA-vfxr-r8f8-gfmp · x_refsource_CONFIRM, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-142636 · ADVISORY
- https://github.com/laravel/framework · PACKAGE
History
- 3 Dec 2026 21:56 UTC · NVD: status Received → Awaiting Analysis
- 3 Dec 2026 19:56 UTC · OSV: first stored (published 3 Dec 2026)
- 3 Dec 2026 00:30 UTC · NVD: first stored (published 2 Dec 2026)
- 2 Dec 2026 23:30 UTC · CVE List: first stored (published 2 Dec 2026)