Laravel Mass Assignment Vulnerability via JSON Column Nesting

Vulnerability

A vulnerability exists in Laravel versions prior to 6.18.35 and in the 7.x branch prior to 7.24.0. The issue arises from improper handling of the $guarded property in certain situations involving requests with JSON column nesting expressions. This can lead to unexpected mass assignment of model attributes.

Impact

Exploitation of this vulnerability allows for unintended mass assignment of model attributes, potentially leading to unauthorized data modifications.

Remediation

Users can update to Laravel versions 6.18.35 or 7.24.0. It is recommended to use the $fillable property instead of $guarded for mass assignment protection.

Added: May 15, 2026, 10:04 AM
Updated: May 15, 2026, 10:04 AM

Vulnerability Rating

Custom Algorithm
spread
7.6
impact
0.6
exploitability
7.6
remediation
8.3
relevance
0.0
threat
0.0
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.