CVE-2026-142649
Laravel: `in` / `Rule: : in` validation rule bypass via loose comparison
- Severity
- 5.3MediumNetwork attack, no privileges, no user interactionCVSS 3.1, CVE List
- Exploitation
- UnknownNo source reports exploitation yet.
- Exploit chance
- 0.62% in 30 daysPercentile51stEPSS, scored
- Listed fix
12.67.0for laravel/framework From GitHub Advisories and OSV1 more listed version
Overview
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 3.1 vector
Exploitability
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
Impact
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NExploit chance over time
Affected
Packages 1
| Package | Affected | Fixed |
|---|---|---|
laravel/frameworkPackagist | before 12.67.0, plus listed versions 10.50.25.0.305.2.41v10.0.0v10.0.1 Show 45 more versionsShow lessv10.0.2v10.0.3v10.1.0v10.1.1v10.1.2v10.1.3v10.1.4v10.1.5v10.10.0v10.10.1v10.11.0v10.12.0v10.13.0v10.13.1v10.13.2v10.13.3v10.13.5v10.14.0v10.14.1v10.15.0v10.16.0v10.16.1v10.17.0v10.17.1v10.18.0v10.19.0v10.2.0v10.20.0v10.21.0v10.21.1v10.22.0v10.23.0v10.23.1v10.24.0v10.25.0v10.25.1v10.25.2v10.26.0v10.26.1v10.26.2v10.27.0v10.28.0v10.29.0v10.3.0v10.3.1 | 12.67.0 |
| 13.0.0 up to 13.26.0, plus listed versions v13.0.0v13.1.0v13.1.1v13.10.0v13.11.0 Show 27 more versionsShow lessv13.11.1v13.11.2v13.12.0v13.13.0v13.14.0v13.15.0v13.16.0v13.16.1v13.17.0v13.18.0v13.18.1v13.19.0v13.2.0v13.20.0v13.21.0v13.21.1v13.22.0v13.23.0v13.24.0v13.25.0v13.3.0v13.4.0v13.5.0v13.6.0v13.7.0v13.8.0v13.9.0 | 13.26.0 |
The JSON record also has 1,204 more versions.
Products 2
Sources
CVE List Score usedCVSS 3.15.3
Laravel: `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.
- Record
CVE-2026-142649- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-697
- Updated
- 2026-12-03
EUVDEUVD-2026-141976CVSS 3.15.3
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.
- Record
EUVD-2026-141976- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-12-03
GitHub AdvisoriesGHSA-h2hg-mfj4-rg7qCVSS 3.15.3
Laravel: `in` / `Rule::in` validation rule bypass via loose comparison
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
Reported by
— Sergey Sannikov, GitHub @semx
- Record
GHSA-h2hg-mfj4-rg7q- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-697
- Updated
- 2026-12-03
NVDCVSS 3.15.3
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.
- Record
CVE-2026-142649- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-697
- Updated
- 2026-12-03
OSVCVSS 3.15.3
Laravel: `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.
- Record
CVE-2026-142649- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-697
- Updated
- 2026-12-03
OSVGHSA-h2hg-mfj4-rg7qCVSS 3.15.3
Laravel: `in` / `Rule::in` validation rule bypass via loose comparison
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
Reported by
— Sergey Sannikov, GitHub @semx
- Record
GHSA-h2hg-mfj4-rg7q- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-697
- Updated
- 2026-12-03
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| Published date | EUVD, OSV | |
| Published date | EUVD | |
| Affected packages, references | OSV | |
| Affected packages, key facts, references | CVE List, GitHub Advisories, NVD | |
| Other IDs, references | OSV | |
| Other IDs, products, published date | EUVD, NVD | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/laravel/framework/security/advisories/GHSA-h2hg-mfj4-rg7q
github.com/laravel/framework/pull/61146
github.com/laravel/framework/commit/0db83d4177675d9290bee91f33f90b2b5828e56e
github.com/laravel/framework/releases/tag/v12.67.0
github.com/laravel/framework/releases/tag/v13.26.0
nvd.nist.gov/vuln/detail/CVE-2026-142649
github.com/advisories/GHSA-h2hg-mfj4-rg7q
github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142649.json
github.com/laravel/framework