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.

Project Subscriptions

Vendors Products
Laravel Subscribe
Framework Subscribe
Advisories
Source ID Title
Github GHSA Github GHSA GHSA-wwq3-m3j5-wv66 Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Thu, 03 Dec 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 03 Dec 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Laravel
Laravel framework
Vendors & Products Laravel
Laravel framework

Wed, 02 Dec 2026 23:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB
Weaknesses CWE-1287
CWE-843
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-12-03T16:40:10.309Z

Reserved: 2026-12-02T22:31:29.396Z

Link: CVE-2026-142643

cve-icon Vulnrichment

Updated: 2026-12-03T16:39:59.043Z

cve-icon NVD

Status : Received

Published: 2026-12-02T23:18:43.083

Modified: 2026-12-03T17:18:05.707

Link: CVE-2026-142643

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-12-03T17:30:21Z

Weaknesses