CVE-2026-142649: Laravel: `in` / `Rule::in` validation rule bypass via loose comparison
Vulnerability summary
CVE-2026-142649 is a medium (CVSS 5.3) Incorrect Comparison vulnerability in laravel framework. EPSS estimates a 0.62% chance of exploitation in the next 30 days, higher than 51.1% of scored vulnerabilities.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 02-12-2026PublishedVulnerability first disclosed.
- 03-12-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS trend
Probability
0.62%
Chance of exploitation in the next 30 days
Percentile
51%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Laravel1 product
- framework< 12.67.0 | ≥ 13.0.0, < 13.26.0
1 vendor · 1 product
References
5 links- github.com/laravel/framework/security/advisories/GHSA-h2hg-mfj4-rg7qX Refsource CONFIRM
- github.com/laravel/framework/pull/61146X Refsource MISC
- github.com/laravel/framework/releases/tag/v12.67.0X Refsource MISC
- github.com/laravel/framework/releases/tag/v13.26.0X Refsource MISC