Vulnerability GHSA-6pxv-c29g-cc5h

Medium Risk
MEDIUM RISK
CVSS Score: 5.3
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
20 hours ago
December 03, 2026 at 06:09 PM UTC
Laravel: Eloquent mass-assignment guard bypass via attribute-name normalization mismatch
4.0.0-BETA2 - 12.72.0 and 13.0.0 - 13.42.0
4.0.0-BETA2 - 12.72.0 and 13.0.0 - 13.42.0

Summary

Laravel: Eloquent mass-assignment guard bypass via attribute-name normalization mismatch

Details

Impact

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 write protected attributes such as role or privilege flags.

Patches

A fix has been merged to the 12.x branch in https://github.com/laravel/framework/pull/62499. It normalizes keys before comparing them against the guarded list.

Impacted packages

Timeline

Published
20 hours ago
December 03, 2026 at 06:09 PM UTC
Fixed (12.73.0)
17 days ago
November 17, 2026 at 02:54 PM UTC
Fixed (13.43.0)
17 days ago
November 17, 2026 at 02:58 PM UTC
Last Modified
20 hours ago
December 03, 2026 at 06:15 PM UTC