{"vuln_id":"GHSA-h2hg-mfj4-rg7q","aliases":["GHSA-gvpq-g4gw-8p4x","GHSA-hmj2-jgmw-v4m4"],"description":"`in` / `Rule::in` validation rule bypass via loose comparison","published_at":"2026-11-18T12:44:24Z","modified_at":"2026-11-18T12:44:24Z","first_seen_at":"2026-11-21T19:15:07.348445Z","severity":"medium","severity_source":"ghsa","cvss_score":5.3,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","cwe":["CWE-697"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-h2hg-mfj4-rg7q"},"matched_alias":null,"items":[{"id":566,"source":{"id":"gh-laravel","name":"Laravel framework releases (GitHub laravel/framework)"},"title":"GHSA-h2hg-mfj4-rg7q: `in` / `Rule::in` validation rule bypass via loose comparison","summary":"`in` / `Rule::in` validation rule bypass via loose comparison\n\n## Summary\r\n\r\nThe `in` validation rule (and `Rule::in`, and `not_in` via the same code) compares\r\nthe scalar input to the allowlist with a **non-strict** `in_array()`. PHP 8 then\r\ncompares numeric strings numerically, so many values that are **not literally in\r\nthe list** pass validation — including whitespace-padded, leading-zero,\r\nsigned, and scientific-notation forms, and an embedded newline. The value\r\nreturned by `validated()` / `valid()` is the **raw, un-canonicalized** input, so\r\nthe attacker-controlled bytes flow through to the application even though the\r\nrule was supposed to constrain them to a fixed set.\r\n\r\nThe array branch of the same method already compares as strings\r\n(`array_diff`), so this is an internal inconsistency, not intended behavior.\r\n\r\n## Impact\r\n\r\nAny allowlist of numeric values — feature flags (`in:0,1`), status codes,\r\nrole/tenant/enum IDs stored as integers may be bypassed with an\r\nequivalent-but-not-identical representation. \r\n\r\n## Patched\r\nFixed in [#61146](https://github.com/laravel/framework/pull/61146) \r\n\r\n## Reported by\r\n— Sergey Sannikov, GitHub @semx\n\nAffected packages: composer:laravel/framework\nPatched: laravel/framework >=12.67.0, laravel/framework >=13.26.0","url":"https://github.com/laravel/framework/security/advisories/GHSA-h2hg-mfj4-rg7q","published_at":"2026-11-18T12:44:24Z","updated_at":"2026-11-18T12:44:24Z","fetched_at":"2026-11-21T19:15:07.232329Z","severity":"medium","cvss_score":5.3,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"laravel","product":"laravel/framework","vuln_id":"GHSA-h2hg-mfj4-rg7q","vuln_ids":["GHSA-GVPQ-G4GW-8P4X","GHSA-H2HG-MFJ4-RG7Q","GHSA-HMJ2-JGMW-V4M4"],"tags":["repo-advisory","composer","CWE-697","security","repo:laravel/framework"],"cluster_id":406,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/566","html":"https://vulnwatch.ve1ve2.com/item/566"}},{"id":12604,"source":{"id":"gh-laravel","name":"Laravel framework releases (GitHub laravel/framework)"},"title":"[SECURITY RELEASE] laravel/framework v12.67.0","summary":"Fixes advisories: GHSA-h2hg-mfj4-rg7q, GHSA-gvpq-g4gw-8p4x, GHSA-hmj2-jgmw-v4m4\n\n* [12.x] Stricten `upload` to be fetch only from request's query string for temporary upload urls by @crynobone in https://github.com/laravel/framework/pull/61145\n* [12.x] Improves `in` validation rule from getting bypass via loose comparison by @crynobone in https://github.com/laravel/framework/pull/61146\n* [12.x] Retry timed-out cloud agent long-polls by @kieranbrown in https://github.com/laravel/framework/pull/61178\n* [12.x] Escape single quotes in Postgres JSON path attributes by @crynobone in https://github.com/laravel/framework/pull/61192\n* [12.x] Promote nested data to top-level managed queue event by @timacdonald in https://github.com/laravel/framework/pull/61225\n* [12.x] Backport #60908: Avoid quadratic wildcard rule expansion by @OutlawPlz in https://github.com/laravel/framework/pull/61232","url":"https://github.com/laravel/framework/releases/tag/v12.67.0","published_at":"2026-08-18T13:39:12Z","updated_at":null,"fetched_at":"2026-11-22T14:05:36.930603Z","severity":"medium","cvss_score":5.9,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"laravel","product":"framework","vuln_id":"GHSA-h2hg-mfj4-rg7q","vuln_ids":["GHSA-GVPQ-G4GW-8P4X","GHSA-H2HG-MFJ4-RG7Q","GHSA-HMJ2-JGMW-V4M4"],"tags":["release","repo:laravel/framework","security"],"cluster_id":406,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12604","html":"https://vulnwatch.ve1ve2.com/item/12604"}},{"id":12603,"source":{"id":"gh-laravel","name":"Laravel framework releases (GitHub laravel/framework)"},"title":"[SECURITY RELEASE] laravel/framework v13.26.0","summary":"Fixes advisories: GHSA-h2hg-mfj4-rg7q, GHSA-gvpq-g4gw-8p4x\n\n* [13.x] Add JobReleased event to Worker by @jackbayliss in https://github.com/laravel/framework/pull/61108\n* [13.x] Fix QueueWorkerTest by @jackbayliss in https://github.com/laravel/framework/pull/61134\n* [13.x] Avoid cross-slot reads when checking paused queues by @lazerg in https://github.com/laravel/framework/pull/61139\n* [13.x] Add managedQueues() to the Cloud queue by @jackbayliss in https://github.com/laravel/framework/pull/61149\n* [13.x] Accept enums in `inOrderOf()` by @ziadoz in https://github.com/laravel/framework/pull/61147\n* [13.x] Surface paused queues in the queue worker output by @jackbayliss in https://github.com/laravel/framework/pull/61142\n* [13.x] Respect readonly=false in Microsoft SQL Server configuration by @HenkPoley in https://github.com/laravel/framework/pull/61141\n* [12.x] Stricten `upload` to be fetch only from request's query string for temporary upload urls by @crynobone in https://github.com/laravel/framework/pull/61145\n* Read-through filesystem by @taylorotwell in https://github.com/laravel/framework/pull/61140\n* [13.x] Pass a connector to PhpRedisClusterConnection so it can rebuild its client by @tgivslife in https://github.com/laravel/framework/pull/61161\n* [13.x] Only register pail dev command when installed by @jackbayliss in https://github.com/laravel/framework/pull/61157\n* [13.x] feat: add closure support to wherePivot and orWherePivot by @calebdw in https://github.com/laravel/framework/pull/61150\n* [13.x] feat: add orWhereKey and orWhereKeyNot to Eloquent Builder by @calebdw in https://github.com/laravel/framework/pull/61154\n* [13.x] allow read through filesystems to optionally not copy by @jimbojsb in https://github.com/laravel/framework/pull/61155\n* [13.x] Fix constantly asking to install `multiplex` & starting `vite` on project without vite by @nunomaduro in https://github.com/laravel/framework/pull/61167\n* [13.x] Add debounceable queued listeners by @stevebauman in https://github.com/laravel/framework/pull/61169\n* [13.x] Add test to ensure pail is ignored if not installed by @jackbayliss in https://github.com/laravel/framework/pull/61168\n* Allow some Redis commands to retry on transient failures by @taylorotwell in https://github.com/laravel/framework/pull/61175\n* Fix Redis pipeline facade annotation by @MNazikk in https://github.com/laravel/framework/pull/61173\n* [13.x] Remove the pinned `@laravel/multiplex` version by @joetannenbaum in https://github.com/laravel/framework/pull/61171\n* [13.x] Fix FoundationDevCommandsTest by @jackbayliss in https://github.com/laravel/framework/pull/61170\n* [12.x] Improves `in` validation rule from getting bypass via loose comparison by @crynobone in https://github.com/laravel/framework/pull/61146\n* [13.x] Retry timed-out cloud agent long-polls by @kieranbrown in https://github.com/laravel/framework/pull/61177\n* [12.x] Retry timed-out cloud agent long-polls by @kieranbrown in https://github.com/laravel/framework/pull/61178\n* [13.x] Scan every master node in phpredis cluster connections by @tgivslife in https://github.com/laravel/framework/pull/61174\n* [13.x] Fix uncaptured setTestNow now() reuse in tests by @lucasmichot in https://github.com/laravel/framework/pull/61190\n* [13.x] Make process pools iterable by @xurshudyan in https://github.com/laravel/framework/pull/61184\n* [13.x] Report seeder progress in db:seed command - when a specific class is specified by @iz-ahmad in https://github.com/laravel/framework/pull/61186\n* [13.x] Fix infinite scan loop when pruning stale cache tags on a Redis cluster by @tgivslife in https://github.com/laravel/framework/pull/61181\n* [13.x] Add a dedicated exception for idle process timeouts by @xurshudyan in https://github.com/laravel/framework/pull/61182\n* [13.x] Keep the Redis connection usable when a pipeline or transaction fails by @tgivslife in https://github.com/laravel/framework/pull/61183\n* [12.x] Escape single quotes in Postgres JSON path attributes by @crynobone in https://github.com/laravel/framework/pull/61","url":"https://github.com/laravel/framework/releases/tag/v13.26.0","published_at":"2026-08-18T12:32:15Z","updated_at":null,"fetched_at":"2026-11-22T14:05:36.930603Z","severity":"medium","cvss_score":5.3,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"laravel","product":"framework","vuln_id":"GHSA-h2hg-mfj4-rg7q","vuln_ids":["GHSA-GVPQ-G4GW-8P4X","GHSA-H2HG-MFJ4-RG7Q","GHSA-HMJ2-JGMW-V4M4"],"tags":["release","repo:laravel/framework","security"],"cluster_id":406,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12603","html":"https://vulnwatch.ve1ve2.com/item/12603"}}]}