Laravel data loss via relationship inclusion on read-only endpoints
laravel framework
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| laravel/framework Packagist |
|
|
Original description
Laravel is a web application framework. From 12.45.0 until 12.68.0 and 13.27.0, crafted relationship inclusion on a read-only endpoint can trigger a destructive database operation on a related table instead of retrieving data. A user with read access but no write permission can empty related-table data, causing irreversible data loss, denial of service, and loss of data integrity. This issue is fixed in versions 12.68.0 and 13.27.0.