cvelo
P3 · MediumCVSS 5.3EPSS 0.5%

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

  • CVE-2026-142634
  • GHSA-6pxv-c29g-cc5h
  • EUVD-2026-141963

Description

Laravel is a web application framework. Prior to 13.43.0 and 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 write protected attributes such as role or privilege flags. This issue is fixed in versions 13.43.0 and 12.73.0.

Text from the CVE.org record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • laravel framework

    Affected versionsFixed in
    >= 13.0.0, < 13.43.0none stated
    < 12.73.0none stated
  • laravel/frameworkPackagist

    Affected versionsFixed in
    from 13.0.0 to before 13.43.013.43.0
    before 12.73.012.73.0

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.