MediumGHSA-cc2w-ghc5-m5qr

Laravel Risk of mass-assignment vulnerabilities

Published 15 May 2024 · Updated 29 Nov 2024

Affected package

Affected
>=4.0.0 <4.1.29
Fixed in
4.1.29
Update to the fixed version for your release line, for example:composer require illuminate/database:^4.1.29

Details

Laravel 4.1.29 improves the column quoting for all database drivers. This protects your application from some mass assignment vulnerabilities when not using the fillable property on models. If you are using the fillable property on your models to protect against mass assignment, your application is not vulnerable. However, if you are using guarded and are passing a user controlled array into an "update" or "save" type function, you should upgrade to 4.1.29 immediately as your application may be at risk of mass assignment.

Is GHSA-cc2w-ghc5-m5qr in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected illuminate/database, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.