{"id":"CVE-2026-142649","summary":"Laravel: `in` / `Rule::in` validation rule bypass via loose comparison","details":"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.","aliases":["GHSA-h2hg-mfj4-rg7q"],"modified":"2026-12-03T01:00:08.863350052Z","published":"2026-12-02T23:05:11.888Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-697"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142649.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142649.json"},{"type":"FIX","url":"https://github.com/laravel/framework/commit/0db83d4177675d9290bee91f33f90b2b5828e56e"},{"type":"FIX","url":"https://github.com/laravel/framework/pull/61146"},{"type":"WEB","url":"https://github.com/laravel/framework/releases/tag/v12.67.0"},{"type":"WEB","url":"https://github.com/laravel/framework/releases/tag/v13.26.0"},{"type":"ADVISORY","url":"https://github.com/laravel/framework/security/advisories/GHSA-h2hg-mfj4-rg7q"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142649"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/laravel/framework","events":[{"introduced":"0"},{"fixed":"fe2cdaba052cbb9f350761ccefc7ac221cbdf0b5"},{"introduced":"3e33f431a05365d008742ff8001b92641086d5f8"},{"fixed":"17f6e626e014dd9b4a380ae2924b590a129a5307"},{"fixed":"0db83d4177675d9290bee91f33f90b2b5828e56e"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"12.67.0"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"strategy":"StringRangeExpression","range":[{"introduced":"13.0.0"},{"fixed":"13.26.0"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"0db83d4177675d9290bee91f33f90b2b5828e56e"}]},{"range":[{"fixed":"fe2cdaba052cbb9f350761ccefc7ac221cbdf0b5"}],"source":"REFERENCES_TAG","original_tag":"v12.67.0"},{"original_tag":"v13.26.0","range":[{"fixed":"17f6e626e014dd9b4a380ae2924b590a129a5307"}],"source":"REFERENCES_TAG"}]}}],"versions":["v12.66.0","v13.25.0","v12.65.0","v13.24.0","v13.23.0","v13.22.0","v13.21.1","v13.21.0","v12.64.0","v13.20.0","v12.63.0","v13.19.0","v13.18.1","v13.18.0","v13.17.0","v13.16.1","v13.16.0","v12.62.0","v13.15.0","v13.14.0","v12.61.1","v13.13.0","v12.61.0","v13.12.0","v12.60.2","v13.11.2","v12.60.1","v13.11.1","v12.60.0","v13.11.0","v13.10.0","v12.59.0","v13.9.0","v13.8.0","v13.7.0","v12.58.0","v12.57.0","v13.6.0","v13.5.0","v13.4.0","v13.3.0","v12.56.0","v13.2.0","v13.1.1","v13.1.0","v12.55.1","v13.0.0","v12.55.0","v12.54.1","v12.54.0","v12.53.0","v12.52.0","v12.51.0","v12.50.0","v12.49.0","v12.48.1","v12.48.0","v12.47.0","v12.46.0","v12.45.2","v12.45.1","v12.45.0","v12.44.0","v12.43.1","v12.43.0","v12.42.0","v12.41.1","v12.41.0","v12.40.2","v12.40.0","v12.40.1","v12.39.0","v12.38.1","v12.38.0","v12.37.0","v12.36.1","v12.36.0","v12.35.1","v12.35.0","v12.34.0","v12.33.0","v12.32.5","v12.32.4","v12.32.3","v12.32.2","v12.32.1","v12.32.0","v12.31.1","v12.31.0","v12.30.1","v12.30.0","v12.29.0","v12.28.1","v12.28.0","v12.27.1","v12.26.4","v12.26.3","v12.26.2","v12.26.1","v12.26.0","v12.25.0","v12.24.0","v12.23.1","v12.23.0","v12.22.1","v12.22.0","v12.21.0","v12.20.0","v12.19.3","v12.19.2","v12.19.1","v12.19.0","v12.18.0","v12.17.0","v12.16.0","v12.15.0","v12.14.1","v12.14.0","v12.13.0","v12.12.0","v12.11.1","v12.11.0","v12.10.2","v12.10.1","v12.10.0","v12.9.2","v12.9.1","v12.9.0","v12.8.1","v12.8.0","v12.7.2","v12.7.1","v12.7.0","v12.6.0","v12.5.0","v12.4.1","v12.4.0","v12.3.0","v12.2.0","v12.1.1","v12.1.0","v12.0.1","v12.0.0","v9.0.0-beta.1","v8.17.2","v8.17.1","v8.17.0","v8.16.0","v8.15.0","v8.14.0","v8.13.0","v8.12.3","v8.12.2","v8.12.1","v8.12.0","v8.11.2","v8.11.0","v8.11.1","v8.9.0","v8.8.0","v8.7.1","v8.7.0","v8.6.0","v8.5.0","v8.4.0","v8.3.0","v8.2.0","v8.1.0","v8.0.4","v8.0.3","v8.0.2","v8.0.1","v8.0.0","v5.5.1","v5.5.0","v4.1.0","v4.0.0","v4.0.0-BETA4","v4.0.0-BETA3","v4.0.0-BETA2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142649.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"}]}