VulnWatch by ve1ve2
medium 6.5

GHSA-f3ph-5p6j-34xr: Nested sometimes validation rules skipped when value is __missing__

Source:
Laravel framework releases (GitHub laravel/framework)
Published:
Fetched:
Updated:
Affects:
laravel laravel/framework

https://github.com/laravel/framework/security/advisories/GHSA-f3ph-5p6j-34xr ↗

repo-advisorycomposerCWE-20securityrepo:laravel/framework

Nested sometimes validation rules skipped when value is __missing__ ### 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. Affected packages: composer:laravel/framework Patched: laravel/framework >=13.43.0, laravel/framework >=12.72.0

Linked vulnerabilities (1)

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Nested sometimes validation rules skipped when value is __missing__

CWE: CWE-20Aliases: GHSA-cvfq-f547-rv2g, GHSA-v5ch-g375-82r6, GHSA-6rv8-qj5v-p8ch

Also reported by (1)