CVE Catalog

CVE-2026-142649

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.62%

51th percentile - higher than 51% of all known CVEs

Summary

In Laravel (versions prior to 12.67.0 and 13.26.0), the in validation rule (and Rule::in, and not_in) compares scalar input to the allowlist with a non-strict in_array(). PHP 8 compares numeric strings numerically, so values such as whitespace-padded, leading-zero, signed, scientific-notation forms, and embedded newlines can pass validation without literal matching. This may allow bypassing allowlists of numeric values, feature flags, status codes, or IDs. The issue is fixed in versions 12.67.0 and 13.26.0.

Risk Assessment

An attacker could bypass allowlist validation, potentially leading to unauthorized access to features or data. The risk affects Laravel applications using the in rule with numeric values.

Recommendation

Update Laravel to version 12.67.0 or 13.26.0. Review in/not_in validation rules and consider using strict comparisons or input canonicalization.

Other vulnerabilities in Laravel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS