MEDIUMCVSS v3.1 5.3Vulnerability

CVE-2026-142649

## 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

Properties

Severity
medium
Summary
Laravel: `in` / `Rule::in` validation rule bypass via loose comparison
Nvd fetched at
2026-12-04T15:00:48.841578+00:00
Epss score
0.0062
Cvss severity
MEDIUM
Cvss score
5.3
Retrieved at
2026-12-04T15:02:58+00:00
Ghsa published
2026-12-03T18:54:45Z
Source url
https://github.com/advisories/GHSA-h2hg-mfj4-rg7q
Ghsa updated
2026-12-03T18:54:46Z
Ghsa id
GHSA-h2hg-mfj4-rg7q
Last source
FIRST EPSS
Score
5.3
Cvss version
3.1
Cve id
CVE-2026-142649
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
First seen by Signal
2026-12-03T02:46:42+00:00
Name
CVE-2026-142649
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Related Entities (3)

AFFECTS (1)

HAS_WEAKNESS (1)

VULNERABLE_TO (1)

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-142649 (CVSS v3.1 5.3) — Ninja Signal Threat Intelligence | Ninja Signal