CVE-2026-135142: Incorrect authorization in embedded relation writes in Laravel MongoDB
An incorrect authorization weakness in the embedded relation handling of the Laravel MongoDB library may allow a user with basic application privileges to alter records belonging to other users. After an embedded relation is pre-loaded, a routine write on that record is issued without the constraint that limits it to the record the user is permitted to change. This may result in unintended modification or loss of stored data for other users of the same application.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using the Laravel MongoDB library are exposed when they use embedded relations and allow users with basic application privileges to perform writes involving pre-loaded embedded relation records. The impact is cross-user modification or loss of stored data within the same application.
What does an attacker need to exploit it?
The attacker needs basic application privileges and a path that pre-loads an embedded relation before issuing a routine write. No user interaction is required.
What condition causes the authorization failure?
The issue occurs when a write is performed after an embedded relation has been pre-loaded and the write does not retain the constraint limiting changes to the record the user is authorized to modify.