CVE-2026-142643

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.
Configurations

No configuration.

History

02 Dec 2026, 23:18

Type Values Removed Values Added
New CVE

Information

Published : 2026-12-02 23:18

Updated : 2026-12-02 23:18


NVD link : CVE-2026-142643

Mitre link : CVE-2026-142643

CVE.ORG link : CVE-2026-142643


JSON object : View

Products Affected

No product.

CWE
CWE-843

Access of Resource Using Incompatible Type ('Type Confusion')

CWE-1287

Improper Validation of Specified Type of Input