{"api_version":"1","generated_at":"2026-12-03T02:30:17+00:00","cve":"CVE-2026-142649","urls":{"html":"https://cve.report/CVE-2026-142649","api":"https://cve.report/api/cve/CVE-2026-142649.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142649","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142649"},"summary":{"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.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-12-03 00:18:07","updated_at":"2026-12-03 00:18:07"},"problem_types":["CWE-697","CWE-697 CWE-697: Incorrect Comparison"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","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","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","baseScore":5.3,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE"}},{"version":"3.1","source":"CNA","type":"DECLARED","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","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}}],"references":[{"url":"https://github.com/laravel/framework/releases/tag/v12.67.0","name":"https://github.com/laravel/framework/releases/tag/v12.67.0","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/laravel/framework/security/advisories/GHSA-h2hg-mfj4-rg7q","name":"https://github.com/laravel/framework/security/advisories/GHSA-h2hg-mfj4-rg7q","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/laravel/framework/releases/tag/v13.26.0","name":"https://github.com/laravel/framework/releases/tag/v13.26.0","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/laravel/framework/commit/0db83d4177675d9290bee91f33f90b2b5828e56e","name":"https://github.com/laravel/framework/commit/0db83d4177675d9290bee91f33f90b2b5828e56e","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/laravel/framework/pull/61146","name":"https://github.com/laravel/framework/pull/61146","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142649","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142649","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"laravel","product":"framework","version":"affected < 12.67.0","platforms":[]},{"source":"CNA","vendor":"laravel","product":"framework","version":"affected >= 13.0.0, < 13.26.0","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"product":"framework","vendor":"laravel","versions":[{"status":"affected","version":"< 12.67.0"},{"status":"affected","version":">= 13.0.0, < 13.26.0"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-697","description":"CWE-697: Incorrect Comparison","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-12-02T23:05:11.888Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/laravel/framework/security/advisories/GHSA-h2hg-mfj4-rg7q","tags":["x_refsource_CONFIRM"],"url":"https://github.com/laravel/framework/security/advisories/GHSA-h2hg-mfj4-rg7q"},{"name":"https://github.com/laravel/framework/pull/61146","tags":["x_refsource_MISC"],"url":"https://github.com/laravel/framework/pull/61146"},{"name":"https://github.com/laravel/framework/commit/0db83d4177675d9290bee91f33f90b2b5828e56e","tags":["x_refsource_MISC"],"url":"https://github.com/laravel/framework/commit/0db83d4177675d9290bee91f33f90b2b5828e56e"},{"name":"https://github.com/laravel/framework/releases/tag/v12.67.0","tags":["x_refsource_MISC"],"url":"https://github.com/laravel/framework/releases/tag/v12.67.0"},{"name":"https://github.com/laravel/framework/releases/tag/v13.26.0","tags":["x_refsource_MISC"],"url":"https://github.com/laravel/framework/releases/tag/v13.26.0"}],"source":{"advisory":"GHSA-h2hg-mfj4-rg7q","discovery":"UNKNOWN"},"title":"Laravel: `in` / `Rule::in` validation rule bypass via loose comparison"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-142649","datePublished":"2026-12-02T23:05:11.888Z","dateReserved":"2026-12-02T22:43:22.233Z","dateUpdated":"2026-12-02T23:05:11.888Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 00:18:07","lastModifiedDate":"2026-12-03 00:18:07","problem_types":["CWE-697","CWE-697 CWE-697: Incorrect Comparison"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","baseScore":5.3,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":3.9,"impactScore":1.4}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142649","Ordinal":"1","Title":"Laravel: `in` / `Rule::in` validation rule bypass via loose comp","CVE":"CVE-2026-142649","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142649","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Laravel: `in` / `Rule::in` validation rule bypass via loose comp"}]}}}