Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
laravel framework
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Laravel 是一套 Web 应用框架。在 12.73.0 之前,当 Eloquent 正在初始化一个 eager-loaded 关系时,若认证用户首次被解析,Eloquent 的关系约束会被临时禁用。此窗口内进行的延迟键约束查询——例如 Sanctum 的 token owner 查询——会在没有键限制的情况下执行。于是 guard 可能返回 ID 最小的用户(通常是管理员),而不是 token 的真实 owner。 该问题影响那些在用于 eager loading 的关系定义中调用 guard 的应用,例如可

CVSS 6.8 · Medium EPSS 0.42% · P39

Affected Version Matrix 1

VendorProduct Version RangeStatus
laravel framework < 12.73.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-142636

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Laravel: Sanctum guard can resolve the lowest-ID user when evaluated inside an eager-loaded Eloquent relation definition
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
授权机制不正确
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
laravel framework < 12.73.0 -

II. Public POCs for CVE-2026-142636

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-142636

请登录查看更多情报信息。

Other References for CVE-2026-142636 (4)

Same Patch Batch · laravel · 2026-12-02 · 22 CVEs total

CVE-2026-142612 7.5 HIGH Laravel: Denial of service via crafted JSON request body
CVE-2026-142610 7.5 HIGH Laravel: Numeric validation can exhaust resources via extreme exponent input
CVE-2026-142635 6.5 MEDIUM Laravel: IP Spoofing via Host Header in TrustProxies Middleware Forge/Vapor Auto-Detection
CVE-2026-142624 6.5 MEDIUM Laravel: Nested sometimes validation rules skipped when value is __missing__
CVE-2026-142650 5.9 MEDIUM Laravel: SQL Injection in Laravel PostgreSQL Query Grammar
CVE-2026-142642 5.4 MEDIUM Laravel: XSS via unescaped Stringable values in Blade component attribute bag
CVE-2026-142611 5.4 MEDIUM Laravel: Empty array key validation bypass
CVE-2026-142641 5.3 MEDIUM Laravel: File validation bypass via empty input field colliding with an upload in Request:
CVE-2026-142649 5.3 MEDIUM Laravel: `in` / `Rule::in` validation rule bypass via loose comparison
CVE-2026-142644 5.3 MEDIUM Laravel: Quadratic regex backtracking in the decimal validation rule can cause denial of s
CVE-2026-142643 5.3 MEDIUM Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/Mar
CVE-2026-142625 5.3 MEDIUM Laravel: Denial of service in email validation via oversized Unicode domains
CVE-2026-142634 5.3 MEDIUM Laravel: Eloquent mass-assignment guard bypass via attribute-name normalization mismatch
CVE-2026-142623 5.3 MEDIUM Laravel: Unbounded $ref chain resolution in Illuminate\JsonSchema\Deserializer allows deni
CVE-2026-142648 4.9 MEDIUM Laravel: Storage Signed URL Mode Confusion
CVE-2026-142645 4.8 MEDIUM Laravel: Temporary signed URL expiration bypass
CVE-2026-142647 4.8 MEDIUM Laravel: Temporary signed URL expiration bypass via unencoded numeric-keyed route paramete
CVE-2026-142637 4.8 MEDIUM Laravel: Fluent Rule::exists() and Rule::unique() where() values can be interpreted as res
CVE-2026-142638 4.2 MEDIUM Laravel: Unescaped bound attributes on Blade dynamic components that resolve to class-base
CVE-2026-142626 3.1 LOW Laravel: Markdown secured encoding bypassed when Blade views are cached

Showing top 20 of 22 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities