CVE-2026-142637: Laravel Fluent Rule::exists() And Rule::unique() Where() Vulnerability
MODERATECVE-2026-142637 is a MODERATE (CVSS 4.8) fluent rule::exists() and rule::unique() where() vulnerability (CWE-943: Improper Neutralization of Special Elements in Data Query Logic) affecting Laravel libraries in the Packagist ecosystem. The issue involves fluent rule::exists() and rule::unique() where() values can be interpreted as reserved predicates instead of literal values. Remediation is available by upgrading affected packages to version 13.43.0, 12.73.0.
CVE-2026-142637 at a Glance
Security Impact
CVSS: 4.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2026-142637
To remediate this vulnerability, upgrade all affected Laravel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade laravel/framework to 13.43.0
Upgrade laravel/framework to 12.73.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for laravel/framework
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-142637, inspect your project dependencies for Laravel:
inspect dependencies for laravel/framework
Analyze the terminal output to locate any version of Laravel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 13.43.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-943: Improper Neutralization of Special Elements in Data Query Logic, where the product generates a query intended to access or manipulate data in a data store such as a database, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query. In Laravel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-142637 Affected Laravel Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
laravel/framework
|
Packagist |
≥ 13.0.0
< 13.43.0
|
13.43.0
|
|
laravel/framework
|
Packagist |
< 12.73.0
|
12.73.0
|
References
Frequently Asked Questions
What is CVE-2026-142637?
Which Laravel versions are affected?
What version fixes CVE-2026-142637?
Is laravel/framework affected?
What is the CVSS score of CVE-2026-142637?
What CWE is associated with CVE-2026-142637?
How can I check Packagist dependencies for CVE-2026-142637?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-ch34-gjmh-c4hp",
"modified" : "2026-12-03T23:00:40Z",
"published" : "2026-12-03T23:00:40Z",
"aliases" : [ "CVE-2026-142637" ],
"summary" : "Laravel: Fluent Rule::exists() and Rule::unique() where() values can be interpreted as reserved predicates instead of literal values",
"details" : "### Impact\n\nWhen `Rule::exists()` or `Rule::unique()` is scoped with the fluent `where()` method, the condition is serialized into the string rule format and parsed again. A scalar value of `NULL`, `NOT_NULL`, or one starting with `!` could be evaluated as an IS NULL, IS NOT NULL, or not-equal predicate instead of a literal comparison. If an attacker can influence a scope value, such as a tenant key, and the application relies on the rule to verify ownership of a referenced record, the validation can accept records from other scopes. For `unique`, the scope can be widened. Applications that use independent authorization checks or closure-based `where()` conditions are not affected in the same way.\n\n### Patches\n\nA fix that makes the validator read conditions from the rule object so `where()` values are compared literally is proposed in laravel/framework pull requests 62425 (13.x) and 62426 (12.x).\n\n### Workarounds\n\nDo not pass user-influenced values to the scalar `where()` form. Use a closure-based `where()` and perform independent ownership authorization of referenced records.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "laravel/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "13.0.0"
}, {
"fixed" : "13.43.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "laravel/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "12.73.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/security/advisories/GHSA-ch34-gjmh-c4hp"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-142637"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/pull/62425"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/pull/62426"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/commit/029e3a4ceb0c8b7e8394639b161e7d4ef906af54"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/commit/ef1821b33245d58631784ac2093aed0c5bb91242"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/laravel/framework"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/releases/tag/v12.73.0"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/releases/tag/v13.43.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-943" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-12-03T23:00:40Z",
"nvd_published_at" : "2026-12-02T23:18:42Z"
}
}