EnvMap GitHub

CVE-2026-142636

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

EPSS 0.42%Awaiting Analysis

Description

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.

In the words of the organisation that published it (GitHub_M).

Severity

  • 6.8 Medium · CVSS 3.1 from security-advisories@github.com · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

Affected

  • laravel framework: < 12.73.0

as the publisher (GitHub_M) lists them.

Likelihood of exploitation

FIRST's EPSS gives a 0.42% chance of exploitation in the next 30 days, higher than 39% of all CVEs (as of 4 December 2026).

Weakness

CWE-863

References

Record

Published23:18 UTC, 2 December 2026
Last changed05:19 UTC, 5 December 2026
NVD statusAwaiting Analysis
Published byGitHub_M

CVE-2026-142636 on NVD · on CVE.org · Security Briefing

Follow it

Add the feed to a feed reader and new items arrive there as they are published, with no account here and no email.

Add to Feedly Add to Inoreader

Any other reader: paste https://envmap.tech/security/feed.xml

Where this comes from

Nothing here is written by an AI, summarised or rewritten: a headline is its newsroom's own and opens its story. A description is in the words of the organisation that published the CVE; a score says whose it is, NVD's or the publisher's; a CVE nobody has scored yet says so. A CVE that is rejected comes off every list. When a source does not answer, the page keeps the last answer it gave and says since when.

How to read it

EnvMap is a free, open-source DevOps control plane that you run yourself; its Security page brings your scanners' findings into one place. See what it does.