Laravel: Eloquent mass-assignment guard bypass via attribute-name normalization mismatch
Affected
| Package | Affected versions | Fixed in |
|---|---|---|
| composer:laravel/framework | >= 13.0.0, < 13.43.0 | 13.43.0 |
| composer:laravel/framework | < 12.73.0 | 12.73.0 |
Eloquent's $guarded protection can be bypassed with an alternate spelling of a guarded attribute name, such as a hyphen or whitespace variant of is_admin. The guard check compared the raw key, while set-mutator resolution normalized it with Str::studly() or Str::camel(). Applications are affected when a model uses a $guarded blacklist, defines a set-mutator (classic or Attribute-based) on a guarded attribute, and mass-assigns untrusted input such as $request->all(). A remote client could then w…
Read on GitHub Advisory Database
On 12/04/2026, 03:09 AM, GitHub Advisory Database published "Laravel: Eloquent mass-assignment guard bypass via attribute-name normalization mismatch" (type: Advisory). Severity is "Medium" (medium). Related technologies: PHP, Laravel. CVE: CVE-2026-142634.