Vulnerability GHSA-wwq3-m3j5-wv66

Medium Risk
MEDIUM RISK
CVSS Score: 5.3
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
20 hours ago
December 03, 2026 at 06:54 PM UTC
Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB
4.0.0-BETA2 - 12.72.0 and 13.0.0 - 13.42.0
4.0.0-BETA2 - 12.72.0 and 13.0.0 - 13.42.0

Summary

Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB

Details

Impact

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.

Patches

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

Workarounds

Add the string rule (or integer, as appropriate) before exists and unique rules, or cast the input in prepareForValidation().

Impacted packages

Timeline

Published
20 hours ago
December 03, 2026 at 06:54 PM UTC
Fixed (12.73.0)
17 days ago
November 17, 2026 at 02:54 PM UTC
Fixed (13.43.0)
17 days ago
November 17, 2026 at 02:58 PM UTC
Last Modified
20 hours ago
December 03, 2026 at 07:00 PM UTC