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

Published Dec 2, 2026
·
Updated

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.

Affected Software

1 affected component
composer/laravel/framework<13.43.0, <12.73.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Laravel to a version that resolves this vulnerability.

    Fixed in 13.43.0
  2. Upgrade

    Upgrade Laravel to a version that resolves this vulnerability.

    Fixed in 12.73.0

Event History

Dec 2, 2026
CVE Published
via MITRE·10:51 PM
Data Sourced
via MITRE·10:51 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using Laravel before 13.43.0 or 12.73.0 are affected only when they use MySQL or MariaDB and accept JSON input for exists or unique validation against non-numeric string columns. PostgreSQL, SQLite, and form-encoded requests are not affected.

2

What does an attacker need to exploit the validation bypass?

An attacker needs to be able to submit JSON to an endpoint whose validation relies on an exists or unique rule for a non-numeric string column. No authentication is required when the vulnerable endpoint itself is publicly reachable.

3

How can I check whether a vulnerable endpoint is at risk?

Review JSON-consuming endpoints for validation rules such as required|exists:invites,code or unique rules that query string columns on MySQL or MariaDB. Such endpoints may accept integer or boolean JSON values including 0, false, or [0] where a valid string identifier should be required.

4

What can be done if upgrading is not immediately possible?

Restrict affected endpoints to form-encoded input where feasible, since form values are always strings. For JSON endpoints, enforce that the relevant field is a string before applying exists or unique validation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203