{"schemaVersion":4,"id":"CVE-2026-142649","aliases":[],"status":"published","duplicateOf":null,"title":"Laravel: `in` / `Rule::in` validation rule bypass via loose comparison","description":"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.","dates":{"published":"2026-12-02T23:05:11.888Z","modified":"2026-12-03T16:09:50.253Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0062,"percentile":0.51178,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-12-03T00:00:00.000Z","score":0.00459,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0062,"percentile":0.51178}],"last30":[{"date":"2026-12-03T00:00:00.000Z","score":0.00459,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0062,"percentile":0.51178}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-697","name":"Incorrect Comparison","description":"The product compares two entities in a security-relevant context, but the comparison is incorrect.","type":"weakness","status":"Incomplete","abstraction":"Pillar","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/697.html"}],"affected":[{"vendor":"laravel","product":"framework","name":"framework","label":"framework","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 12.67.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"12.67.0","endInclusive":false}},{"text":"≥ 13.0.0, < 13.26.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"13.0.0","startInclusive":true,"end":"13.26.0","endInclusive":false}}],"versionsText":"< 12.67.0 | ≥ 13.0.0, < 13.26.0","eol":null,"hubHref":"/vendor/laravel/framework"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/laravel/framework/security/advisories/GHSA-h2hg-mfj4-rg7q","label":"github.com/laravel/framework/security/advisories/GHSA-h2hg-mfj4-rg7q","hostname":"github.com","tags":["X Refsource CONFIRM"]},{"url":"https://github.com/laravel/framework/pull/61146","label":"github.com/laravel/framework/pull/61146","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/laravel/framework/commit/0db83d4177675d9290bee91f33f90b2b5828e56e","label":"github.com/laravel/framework/commit/0db83d4177675d9290bee91f33f90b2b5828e56e","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/laravel/framework/releases/tag/v12.67.0","label":"github.com/laravel/framework/releases/tag/v12.67.0","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/laravel/framework/releases/tag/v13.26.0","label":"github.com/laravel/framework/releases/tag/v13.26.0","hostname":"github.com","tags":["X Refsource MISC"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-12-02T23:05:11.888Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-12-03T16:09:50.253Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,1,53],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.0062,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-12-03T16:09:50.253Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-12-03T16:09:50.253Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-12-03T15:15:46.571Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.0062,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T09:01:26.874Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T09:01:27.430Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T09:01:27.610Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T09:01:02.756Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T09:01:25.188Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T09:01:24.136Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T09:08:42.626Z","stale":false,"partial":false}}