# CVE-2026-142636: Laravel: Sanctum guard can resolve the lowest-ID user when evaluated inside an eager-loaded Eloquent relation definition

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-12-02 · Modified: 2026-12-05
- Record: https://cvemate.com/vulnerability/CVE-2026-142636 · JSON: https://cvemate.com/vulnerability/CVE-2026-142636/json

## Description

```text
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.
```

## Signals

- CVSS: 6.8 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.424%, percentile 38.651%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- laravel framework: \< 12.73.0

## References

- <https://github.com/laravel/framework/security/advisories/GHSA-vfxr-r8f8-gfmp>
- <https://github.com/laravel/framework/pull/62483>
- <https://github.com/laravel/framework/commit/6ea0fda8128e36e912e7fde755dac345bde9f5f7>
- <https://github.com/laravel/framework/releases/tag/v12.73.0>

---

Data as of 2026-12-05T09:19:37.510Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
