CVE-2026-142643
Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB
Laravel is a web application framework. Prior to 13.43.0 and 12.73.0, The 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. This issue is fixed in versions 13.43.0 and 12.73.0.
Fixes and workarounds
No remediation reported in collected sources.
Missing remediation information is not evidence that no patch exists.
Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| framework laravel |
>= 13.0.0, < 13.43.0 (affected) < 12.73.0 (affected) |
CNA: GitHub_M |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 5.3 medium |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N | CNA: GitHub_M |
| 3.1 / 5.3 medium |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/laravel/framework/security/advisories/GHSA-wwq3-m3j5-wv66CNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/laravel/framework/pull/62447CNA: GitHub_M · x_refsource_MISC
- https://github.com/laravel/framework/pull/62448CNA: GitHub_M · x_refsource_MISC
- https://github.com/laravel/framework/commit/2b517db47fca33b9bf48a15287af63702ace3f99CNA: GitHub_M · x_refsource_MISC
- https://github.com/laravel/framework/commit/a26c3295498fc4de4b878d634fe2a9ae264d9a29CNA: GitHub_M · x_refsource_MISC
- https://github.com/laravel/framework/releases/tag/v12.73.0CNA: GitHub_M · x_refsource_MISC
- https://github.com/laravel/framework/releases/tag/v13.43.0CNA: GitHub_M · x_refsource_MISC
- https://github.com/laravel/framework/commit/2b517db47fca33b9bf48a15287af63702ace3f99[email protected]
- https://github.com/laravel/framework/commit/a26c3295498fc4de4b878d634fe2a9ae264d9a29[email protected]
- https://github.com/laravel/framework/pull/62447[email protected]
- https://github.com/laravel/framework/pull/62448[email protected]
- https://github.com/laravel/framework/releases/tag/v12.73.0[email protected]
- https://github.com/laravel/framework/releases/tag/v13.43.0[email protected]
- https://github.com/laravel/framework/security/advisories/GHSA-wwq3-m3j5-wv66[email protected]
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.