medium

CVE-2026-142624

Packagist · laravel/framework

Summary

Laravel: Nested sometimes validation rules skipped when value is __missing__

Severity
medium
CVSS
6.5
EPSS
0.4% (p36)
CWE
CWE-20, CWE-115
Also known as
GHSA-f3ph-5p6j-34xr
Published
2026-12-03
Updated
2026-12-03

Advisory details

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

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.