CVE-2026-142611
Laravel: Empty array key validation bypass
- Severity
- medium CVSS 5.4 (v3.1)
- Affects
- framework · laravel
- Weakness
- CWE-186: Overly Restrictive Regular Expression
- Published
- 2 December 2026 by GitHub_M
Laravel is a web application framework. Prior to 13.43.0 and 12.73.0, 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. This issue is fixed in versions 13.43.0 and 12.73.0.
Our coverage
We have not written about this one. Know why it matters? Send a tip.