VDB
Sign up
MEDIUM6.5

GHSA-5wcm-3v2w-8362

Laravel relationship inclusion can trigger unauthorized data destruction

Quick fix

GHSA-5wcm-3v2w-8362 — laravel/framework: upgrade to the fixed version with the command below.

composer require laravel/framework:^12.68.0

Details

A vulnerability in how relationship inclusion is processed on certain read endpoints. Under specific conditions, a request to a read-only endpoint can be crafted to trigger a destructive database operation on a related table, rather than simply retrieving data.

### Impact A user with only read access could cause irreversible data loss (e.g., a related table being emptied), without needing any write permissions. This could result in denial of service and loss of data integrity for affected applications.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/laravel/framework
Introduced in: 12.45.0Fixed in: 12.68.0
Fixcomposer require laravel/framework:^12.68.0
Packagist/laravel/framework
Introduced in: 13.0.0Fixed in: 13.27.0
Fixcomposer require laravel/framework:^13.27.0

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:composer/laravel/framework"]}'