Intel

AIKIDO-2026-977435

lomkit/laravel-rest-api is vulnerable to Incorrect Authorization

Incorrect AuthorizationGHSA-w87g-c4fx-87gg Published Yesterday

65

Medium Risk

This Affects:

PHPlomkit/laravel-rest-api
2.0.0 - 2.23.1
Fixed in 2.23.2
Are you affected? Scan for Free

TL;DR

The package authorizes nested relation sync and toggle mutations using only the view ability instead of update. A caller with view access to a related record and update access to the parent can fill attributes onto the related model, writing fields without update permission. The nested sync and toggle attributes are also not checked against the resource's update validation rules, so arbitrary values pass unvalidated. The fix requires the update ability for mutations and applies the update validation rules to sync and toggle.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you expose resources whose related records rely on update authorization or validation.

Background info

lomkit/laravel-rest-api is vulnerable to Incorrect Authorization in versions 2.0.0 - 2.23.1.

How to fix this

Upgrade the lomkit/laravel-rest-api library to the patch version.