Laravel: Nested sometimes validation rules skipped when value is __missing__
Package Affected versions Patched versions Description Impact When an attribute is nested or uses a wildcard (for example profile.age or items.
*.quantity) and is validated with the sometimes rule, sub
Package
laravel/framework (Composer)Affected versions
>= 13.0.0, < 13.43.0 < 12.72.0Patched versions
13.43.0 12.72.0Description
Impact
When an attribute is nested or uses a wildcard (for example profile.age or items.*.quantity) and is validated with the sometimes rule, submitting the literal string __missing__ as its value causes the attribute to be treated as absent. All of its rules are skipped, the request passes validation, and the unvalidated value is returned by validated(). Applications may then store or process input that did not satisfy the declared rules. Top-level attributes and nested attributes without sometimes are not affected.
Patches
The issue is fixed in the 12.x branch & 13.x branch, released in v12.72.0 and v13.43.0.
References
- GHSA-f3ph-5p6j-34xr
- https://nvd.nist.gov/vuln/detail/CVE-2026-142624
- laravel/framework#62402
- laravel/framework@b79483b
- laravel/framework@ba9e21e
- https://github.com/laravel/framework/releases/tag/v12.72.0
- https://github.com/laravel/framework/releases/tag/v13.43.0
Severity
Moderate CVSS overall score This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS). / 10CVSS v3 base metrics
Attack vector Network Attack complexity Low Privileges required None User interaction None Scope Unchanged Confidentiality Low Integrity Low Availability None CVSS v3 base metrics Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability. Attack complexity: More severe for the least complex attacks. Privileges required: More severe if no privileges are required. User interaction: More severe when no user interaction is required. Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope. Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user. Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user. Availability: More severe when the loss of impacted component availability is highest. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NEPSS score
Weaknesses
Weakness CWE-20Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. Learn more on MITRE. Weakness CWE-115Misinterpretation of Input
The product misinterprets an input, whether from an attacker or another product, in a security-relevant fashion. Learn more on MITRE.CVE ID
CVE-2026-142624GHSA ID
GHSA-f3ph-5p6j-34xrSource code
laravel/frameworkCredits
-
DirkHoffman Reporter
Uh oh!
There was an error while loading. Please reload this page.
See something to contribute? Suggest improvements for this vulnerability.