Laravel is a web application framework. Prior to 12.67.0 and 13.26.0, The in validation rule (and Rule::in, and not_in via the same code) compares the scalar input to the allowlist with a non-strict in_array(). PHP 8 then compares numeric strings numerically, so many values that are not literally in the list pass validation , including whitespace-padded, leading-zero, signed, and scientific-notation forms, and an embedded newline. The value returned by validated() / valid() is the raw, un-canonicalized input, so the attacker-controlled bytes flow through to the application even though the rule was supposed to constrain them to a fixed set. The array branch of the same method already compares as strings (array_diff), so this is an internal inconsistency, not intended behavior. Any allowlist of numeric values , feature flags (in:0,1), status codes, role/tenant/enum IDs stored as integers may be bypassed with an equivalent-but-not-identical representation. This issue is fixed in versions 12.67.0 and 13.26.0.

Project Subscriptions

Vendors Products
Laravel Subscribe
Framework Subscribe
Advisories
Source ID Title
Github GHSA Github GHSA GHSA-h2hg-mfj4-rg7q Laravel: `in` / `Rule::in` validation rule bypass via loose comparison
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:30:00 +0000

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

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

Type Values Removed Values Added
Description Laravel is a web application framework. Prior to 12.67.0 and 13.26.0, The in validation rule (and Rule::in, and not_in via the same code) compares the scalar input to the allowlist with a non-strict in_array(). PHP 8 then compares numeric strings numerically, so many values that are not literally in the list pass validation , including whitespace-padded, leading-zero, signed, and scientific-notation forms, and an embedded newline. The value returned by validated() / valid() is the raw, un-canonicalized input, so the attacker-controlled bytes flow through to the application even though the rule was supposed to constrain them to a fixed set. The array branch of the same method already compares as strings (array_diff), so this is an internal inconsistency, not intended behavior. Any allowlist of numeric values , feature flags (in:0,1), status codes, role/tenant/enum IDs stored as integers may be bypassed with an equivalent-but-not-identical representation. This issue is fixed in versions 12.67.0 and 13.26.0.
Title Laravel: `in` / `Rule::in` validation rule bypass via loose comparison
Weaknesses CWE-697
References
Metrics cvssV3_1

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


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-12-03T16:09:50.253Z

Reserved: 2026-12-02T22:43:22.233Z

Link: CVE-2026-142649

cve-icon Vulnrichment

Updated: 2026-12-03T15:15:47.668Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-12-03T00:18:07.600

Modified: 2026-12-03T21:45:22.920

Link: CVE-2026-142649

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-12-03T17:15:03Z

Weaknesses