# Craft CMS: Missing peer-permission check in `AssetsController::actionDeleteFolder` allows deletion of other users' assets

High severity, published 2026-07-02. Update craftcms/cms to the fixed version of your branch (5.9.22, 4.17.15): composer update craftcms/cms.

Canonical URL: https://buzzphp.com/security/ghsa-7h62-6v23-v8fm · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-07-02 |
| Updated | 2026-07-02 |
| CVE | [CVE-2026-50284](https://nvd.nist.gov/vuln/detail/CVE-2026-50284) |
| GHSA | [GHSA-7h62-6v23-v8fm](https://github.com/advisories/GHSA-7h62-6v23-v8fm) |
| Weakness | CWE-862 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| craftcms/cms | >= 5.0.0-RC1, < 5.9.22 or >= 4.0.0-RC1, < 4.17.15 | 5.9.22, 4.17.15 |

## What to do

Update craftcms/cms to the fixed version of your branch (5.9.22, 4.17.15): composer update craftcms/cms.

Check which version you run with `composer show craftcms/cms`, and every affected package with `composer audit`.

## About this advisory

Summary

AssetsController::actionDeleteFolder() only requires the deleteAssets: permission for the target folder. It never enforces deletePeerAssets:, even though Assets::deleteFoldersByIds() cascades deletion to every descendant folder and every asset inside, regardless of who uploaded them. A low-privilege user who has been granted folder-management rights on a shared volume can therefore destroy assets uploaded by other users (peer assets), bypassing the per-asset peer-permission check that the sibling actionDeleteAsset endpoint correctly applies.



## Links

- [GHSA-7h62-6v23-v8fm on GitHub](https://github.com/advisories/GHSA-7h62-6v23-v8fm)
- [CVE-2026-50284 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-50284)
- [All Composer security advisories](https://buzzphp.com/security)
