MEDIUMCVSS v3.1 6.8Vulnerability

CVE-2026-142636

### Impact 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. ### Patches The fix for the 12.x branch has been merged in https://github.com/laravel/framework/pull/62483, which keeps constraints enabled when nested relation attributes are resolved during eager-load relation initialization. ### Workarounds Avoid resolving the authenticated user inside relation definitions. Resolve the user ID beforehand and pass it explicitly through an eager-load constraint closure.

Properties

Severity
medium
Summary
Laravel: Sanctum guard can resolve the lowest-ID user when evaluated inside an eager-loaded Eloquent relation definition
Nvd fetched at
2026-12-04T15:00:48.841578+00:00
Epss score
0.00424
Cvss severity
MEDIUM
Cvss score
6.8
Retrieved at
2026-12-04T15:02:58+00:00
Ghsa published
2026-12-03T18:08:58Z
Source url
https://github.com/advisories/GHSA-vfxr-r8f8-gfmp
Ghsa updated
2026-12-03T18:09:01Z
Ghsa id
GHSA-vfxr-r8f8-gfmp
Last source
FIRST EPSS
Score
6.8
Cvss version
3.1
Cve id
CVE-2026-142636
Cvss vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
First seen by Signal
2026-12-03T02:46:42+00:00
Name
CVE-2026-142636
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

Related Entities (3)

AFFECTS (1)

HAS_WEAKNESS (1)

VULNERABLE_TO (1)

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-142636 (CVSS v3.1 6.8) — Ninja Signal Threat Intelligence | Ninja Signal