Laravel: Empty array key validation bypass
- CVE-2026-142611
- GHSA-cq3g-fj94-c8p3
- EUVD-2026-141939
Description
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.
Text from the CVE.org record.
Recommendation
laravel/framework
- If you run a version from 13.0.0 to before 13.43.0update to 13.43.0 or laterMinor version change: check the release noteslaravel/framework 13.43.0 on its registry (opens in a new tab)
- If you run a version before 12.73.0update to 12.73.0 or laterlaravel/framework 12.73.0 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
laravel framework
Affected versions Fixed in >= 13.0.0, < 13.43.0 none stated < 12.73.0 none stated laravel/frameworkPackagist
Affected versions Fixed in from 13.0.0 to before 13.43.0 13.43.0 before 12.73.0 12.73.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.