{"id":"CVE-2026-142634","aliases":["GHSA-6pxv-c29g-cc5h"],"url":"https://o3.security/vulnerability/CVE-2026-142634","summary":"Laravel: Eloquent mass-assignment guard bypass via attribute-name normalization mismatch","details":"### Impact\n\nEloquent'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.\n\n### Patches\n\nA 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.","published":"2026-12-02T22:35:08.705Z","modified":"2026-12-03T21:00:32.074755050Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Packagist","name":"laravel/framework","fixedVersion":"13.43.0"},{"ecosystem":"Packagist","name":"laravel/framework","fixedVersion":"12.73.0"}],"fix":{"url":"https://github.com/laravel/framework/commit/4b27e94a6b6e3ebf693796f406430f16020d2d79","label":"laravel/framework@4b27e94"},"references":[{"type":"WEB","url":"https://github.com/laravel/framework/releases/tag/v12.73.0"},{"type":"WEB","url":"https://github.com/laravel/framework/releases/tag/v13.43.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142634.json"},{"type":"ADVISORY","url":"https://github.com/laravel/framework/security/advisories/GHSA-6pxv-c29g-cc5h"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142634"},{"type":"FIX","url":"https://github.com/laravel/framework/commit/4b27e94a6b6e3ebf693796f406430f16020d2d79"},{"type":"FIX","url":"https://github.com/laravel/framework/pull/62499"},{"type":"PACKAGE","url":"https://github.com/laravel/framework"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-12-03T21:00:32.074755050Z"}}