CVE-2026-142649
MEDIUM 5.3CVSS 3.1Laravel: `in` / `Rule::in` validation rule bypass via loose comparison
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.
- Published
- 3 Dec 2026
- Last modified
- 3 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-697
- Also known as
- GHSA-h2hg-mfj4-rg7q
- Sources
- NVDJSONCVE ListJSONOSV GHSA-h2hg-mfj4-rg7qJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| CVE List | GitHub_M | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: yes; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | laravel | framework | = < 12.67.0; = >= 13.0.0, < 13.26.0 | |
| OSV | Packagist | laravel/framework | < 12.67.0 | 12.67.0 |
| OSV | Packagist | laravel/framework | >= 13.0.0, < 13.26.0 | 13.26.0 |
References
- https://github.com/laravel/framework/commit/0db83d4177675d9290bee91f33f90b2b5828e56e · x_refsource_MISC, WEB
- https://github.com/laravel/framework/pull/61146 · x_refsource_MISC, WEB
- https://github.com/laravel/framework/releases/tag/v12.67.0 · x_refsource_MISC, WEB
- https://github.com/laravel/framework/releases/tag/v13.26.0 · x_refsource_MISC, WEB
- https://github.com/laravel/framework/security/advisories/GHSA-h2hg-mfj4-rg7q · x_refsource_CONFIRM, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-142649 · ADVISORY
- https://github.com/laravel/framework · PACKAGE
History
- 3 Dec 2026 21:56 UTC · NVD: status Received → Awaiting Analysis
- 3 Dec 2026 21:56 UTC · OSV: first stored (published 3 Dec 2026)
- 3 Dec 2026 17:56 UTC · NVD: updated (other details)
- 3 Dec 2026 16:56 UTC · CVE List: updated (other details)
- 3 Dec 2026 00:30 UTC · NVD: first stored (published 3 Dec 2026)
- 2 Dec 2026 23:30 UTC · CVE List: first stored (published 2 Dec 2026)