CVE-2026-142643: Laravel Validation Exists Rule Can Be Vulnerability
MODERATECVE-2026-142643 is a MODERATE (CVSS 5.3) validation exists rule can be vulnerability (CWE-1287: Improper Validation of Specified Type of Input) affecting Laravel libraries in the Packagist ecosystem. The issue involves validation exists rule can be bypassed with integer or boolean input on mysql/mariadb. Remediation is available by upgrading affected packages to version 13.43.0, 12.73.0.
CVE-2026-142643 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2026-142643
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-142643, 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-1287: Improper Validation of Specified Type of Input, where the product receives input that is expected to be of a certain type, but it does not validate or incorrectly validates that the input is actually of the expected type. 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-142643 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-142643?
Which Laravel versions are affected?
What version fixes CVE-2026-142643?
Is laravel/framework affected?
What is the CVSS score of CVE-2026-142643?
What CWE is associated with CVE-2026-142643?
How can I check Packagist dependencies for CVE-2026-142643?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wwq3-m3j5-wv66",
"modified" : "2026-12-03T18:54:21Z",
"published" : "2026-12-03T18:54:21Z",
"aliases" : [ "CVE-2026-142643" ],
"summary" : "Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB",
"details" : "### Impact\n\nThe `exists` and `unique` validation rules passed integer and boolean values from the request unchanged to the database query. On MySQL and MariaDB, comparing a string column with an integer casts the column to a number. As a result, JSON input such as `0`, `false` or `[0]` could satisfy a rule like `required|exists:invites,code` on a non-numeric string column without a valid value. An unauthenticated attacker who can submit JSON could bypass \"must reference an existing record\" checks. PostgreSQL and SQLite are not affected. Form-encoded input is always a string and is not affected.\n\n### Patches\n\n`DatabasePresenceVerifier` now compares integers and booleans as strings. The fixes are merged on the 13.x branch (https://github.com/laravel/framework/pull/62447) and the 12.x branch (https://github.com/laravel/framework/pull/62448).\n\n### Workarounds\n\nAdd the `string` rule (or `integer`, as appropriate) before `exists` and `unique` rules, or cast the input in `prepareForValidation()`.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/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-wwq3-m3j5-wv66"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-142643"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/pull/62447"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/pull/62448"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/commit/2b517db47fca33b9bf48a15287af63702ace3f99"
}, {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/commit/a26c3295498fc4de4b878d634fe2a9ae264d9a29"
}, {
"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-1287", "CWE-843" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-12-03T18:54:21Z",
"nvd_published_at" : "2026-12-02T23:18:43Z"
}
}