CVE-2026-142649: Laravel · `in` / `Rule::in` validation rule bypass via loose comparison
Affects laravel/frameworkSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 12.67.0 when convenient.
Data as of 3 Dec 2026, 19:16 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.3 |
|---|
- Patch
- Available – fixed in 12.67.0, 13.26.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.
What to do
Upgrade laravel/framework to 12.67.0; laravel/framework to 13.26.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistlaravel/framework | Affected
| Fixed in
|
| Packagistlaravel/framework | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
## Summary 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. ## Impact 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. ## Patched Fixed in [#61146](https://github.com/laravel/framework/pull/61146) ## Reported by — Sergey Sannikov, GitHub @semx
References
- github.com/laravel/framework/security/advisories/GHSA-h2hg-mfj4-rg7q (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-142649 (opens in a new tab)
- github.com/laravel/framework/pull/61146 (opens in a new tab)
- github.com/laravel/framework/commit/0db83d4177675d9290bee91f33f90b2b5828e56e (opens in a new tab)
- github.com/laravel/framework (opens in a new tab)
- github.com/laravel/framework/releases/tag/v12.67.0 (opens in a new tab)
- github.com/laravel/framework/releases/tag/v13.26.0 (opens in a new tab)