Laravel: Empty array key validation bypass
Published 3 Dec 2026 · Updated 3 Dec 2026
Affected packages
- Affected
- >=13.0.0 <13.43.0
- Fixed in
- 13.43.0
composer require laravel/framework:^13.43.0- Affected
- <12.73.0
- Fixed in
- 12.73.0
composer require laravel/framework:^12.73.0Which laravel/framework does your project really install?
Works for private projects: the file is read in memory to run the scan and then dropped. Also reads composer.json.
Public repo?
Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Details
When validated input contains an array element whose key is an empty string, such as {"items": {"": {"name": "..."}}} in a JSON request, the rules attached to items.* are never applied to that element. ValidationRuleParser already matches empty segments with [^\.]*, but ValidationData::extractValuesForWildcards() and Validator::getExplicitKeys() still use [^\.]+, so the element is never gathered and wildcard parameters such as required_if:users.*.role,admin are not resolved for it. Rules like Rule::forEach() or array:name,qty on items.* are silently skipped for that element.
Is GHSA-cq3g-fj94-c8p3 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected laravel/framework, and gives you the command that fixes it.
More advisories for laravel/framework
- HighCVE-2026-142612Laravel: Denial of service via crafted JSON request body · 3 Dec 2026
- LowCVE-2026-128083Laravel: Task Output Injection - Concurrency Process · 13 Nov 2026
- CriticalCVE-2026-114509Laravel TokenGuard authentication bypass through non-string API credentials · 23 Oct 2026
- MediumCVE-2026-114508Laravel relationship inclusion can trigger unauthorized data destruction · 23 Oct 2026
- LowCVE-2026-102279Laravel: XSS in Debug Page Information · 29 Sept 2026
- MediumGHSA-crmm-hgp2-wgrpLaravel Framework: Temporary Signed URL Path Confusion · 17 Jun 2026
References
- Linkgithub.com/laravel/framework/security/advisories/GHSA-cq3g-fj94-c8p3
- Linkgithub.com/laravel/framework/pull/62409
- Linkgithub.com/laravel/framework/commit/ab7761b092f19127ab7c7ff8f68a08fc6651730a
- Packagegithub.com/laravel/framework
- Linkgithub.com/laravel/framework/releases/tag/v12.73.0
- Linkgithub.com/laravel/framework/releases/tag/v13.43.0
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.