Executive summary
CVE-2026-142634 affects Laravel’s Eloquent mass-assignment protection. Under a specific combination of model configuration and application input handling, a remote client may submit an alternate spelling of a guarded attribute and reach the corresponding set mutator, potentially modifying protected fields such as role, is_admin, or other authorization-related values.
The flaw is not an unconditional Laravel-wide bypass. Practical exploitation depends on the application using a $guarded blacklist, defining a classic or Attribute-based set mutator for a guarded attribute, and passing attacker-controlled data into mass assignment, for example with $request->all(). Laravel 13.43.0 and 12.73.0 contain the fix.
Detailed analysis
Eloquent models can protect attributes from mass assignment through the $guarded property. The vulnerable behavior arises from inconsistent attribute-name handling. During the guard check, Eloquent compares the incoming raw key, while set-mutator resolution can normalize names with Str::studly() or Str::camel().
As a result, a submitted key that does not exactly match a guarded attribute may still resolve to that attribute’s set mutator. Examples include hyphenated or whitespace-containing variations of is_admin. Once the mutator is invoked, the application may assign a value to the protected attribute even though the original raw key was expected to be blocked by $guarded.
This creates a meaningful security boundary failure in applications where protected attributes influence privileges or other sensitive state. The actual impact is application-specific: a model that exposes only non-sensitive guarded fields would have a different risk profile from one that protects administrative flags, role assignments, account status, or permissions.
Affected systems
The vulnerable configurations are:
- Laravel 13.x releases before 13.43.0.
- Laravel 12.x releases before 12.73.0.
- Eloquent models that use
$guarded.
- Models with a classic set mutator or an
Attribute-based accessor/mutator for a guarded attribute.
- Create or update endpoints that mass-assign untrusted request data, including patterns such as
$request->all().
The issue is network-reachable in affected applications, but the supplied information does not establish that exploitation is possible without authentication. Reachability, authentication requirements, and the sensitivity of the protected values depend on the affected application.
Mitigation
Upgrade affected Laravel applications to 13.43.0 on the 13.x branch or 12.73.0 on the 12.x branch. These releases contain the authoritative fix.
While an upgrade is pending, replace broad mass-assignment calls with an explicit allowlist of fields expected from the request. Alternatively, validate and remove protected or unexpected attribute names before assignment.
Audit models that use $guarded, focusing on set mutators attached to attributes such as role, is_admin, permissions, and account-status fields. Review create and update endpoints to determine whether alternate attribute spellings could reach those models. Logs, request payloads, audit trails, and database change history can help identify suspicious changes involving unusual key spellings or protected fields.
After remediation, regression tests should verify that alternate spellings of guarded attributes neither invoke their protected mutators nor alter protected values.
Expert insight
The central issue is not merely an input-validation weakness but a disagreement between two stages of Eloquent’s attribute handling. The guard subsystem evaluates one representation of an attribute name, while the mutator subsystem can derive another. Security controls that rely on blacklist matching are particularly vulnerable when downstream normalization is broader than the check performed before it.
Although the listed CVSS score is 5.3 and the linked vulnerability is classified as medium, application context may materially increase the consequence. An endpoint reachable without authentication that permits changes to administrative state could face greater risk than the base score suggests. Conversely, protected fields with little security significance would limit practical impact. No known exploitation is recorded in the supplied intelligence, and the CVE is not listed in the CISA KEV catalog; that absence is not evidence that application-specific exploitation cannot occur.