# CVE-2026-50284: Craft CMS authorization bypass in AssetsController folder deletion

Source: https://junglewise.ai/threats/cve-2026-50284-craft-cms-authorization-bypass-in-assetscontroller-folder  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-01. Updated: 2026-07-02  
License: CC BY 4.0 with a link back

CVE-2026-50284 · Severity: high · CVSS 4 · Published 2026-07-01

Craft CMS, a popular content management system, contains a flaw in how it handles folder deletions. A user with basic permission to manage their own folders can exploit this to delete files and folders belonging to other users on the same shared storage volume. This could lead to permanent loss of important company assets and data, as the system fails to check if the user has the specific authority to delete 'peer' content when removing a parent folder.

Technologies: [craftcms/cms (Packagist)](https://junglewise.ai/threats/technologies/craftcms-cms). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2026-50284 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-50284 being exploited in the wild.

**How severe is CVE-2026-50284?** High severity, with a CVSS score of 4, published 1 July 2026.

**Which products and versions are affected?** craftcms/cms (Packagist) ECOSYSTEM:introduced=5.0.0-RC1,fixed=5.9.22.

**Is there a fix for CVE-2026-50284?** Yes. craftcms/cms (Packagist): upgrade to 5.9.22 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-50284 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-50284?** Check whether you run craftcms/cms (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- craftcms/cms (Packagist): upgrade to 5.9.22 or later

  ```sh
  composer require craftcms/cms:^5.9.22
  ```


## Technical details

A missing authorization check exists in the `AssetsController::actionDeleteFolder` endpoint of Craft CMS. While the system correctly checks for 'deletePeerAssets' permissions when deleting individual files, the folder deletion logic only verifies the 'deleteAssets' permission for the target folder itself. Because `Assets::deleteFoldersByIds()` performs a cascading delete of all descendant folders and assets without re-verifying ownership or peer-deletion rights, an authenticated attacker with folder-management rights can destroy any asset within that folder structure regardless of the uploader. This vulnerability affects versions 4.x and 5.x and has been patched in versions 4.17.15 and 5.9.22.

## Affected products

- Pixel & Tonic Craft CMS >= 4.0.0-RC1, < 4.17.15
- Pixel & Tonic Craft CMS >= 5.0.0-RC1, < 5.9.22

## Identifiers

- CVE-2026-50284
- GHSA-7h62-6v23-v8fm

## Timeline

- 2026-05-29: disclosed
- 2026-07-01: kev added: NVD Published Date
- 2026-07-02: advisory

## References

- [https://api.github.com/users/offset](https://api.github.com/users/offset)
- [https://github.com/offset](https://github.com/offset)
- [https://api.github.com/users/offset/gists%7B/gist_id%7D](https://api.github.com/users/offset/gists%7B/gist_id%7D)
- [https://api.github.com/users/offset/repos](https://api.github.com/users/offset/repos)
- [https://avatars.githubusercontent.com/u/114768995?v=4](https://avatars.githubusercontent.com/u/114768995?v=4)
- [https://api.github.com/users/offset/events%7B/privacy%7D](https://api.github.com/users/offset/events%7B/privacy%7D)

## Related threats

- [Craft CMS: Stored XSS in the control panel via unescaped draft name](https://junglewise.ai/threats/cve-2026-72787-craft-cms-stored-xss-in-the-control-panel-via-unescaped-draft)
- [Craft CMS: Arbitrary user password reset leading to administrator account takeover](https://junglewise.ai/threats/cve-2026-72786-craft-cms-arbitrary-user-password-reset-leading-to-administrator)
- [Craft CMS authorization bypass in category structure modification](https://junglewise.ai/threats/craft-cms-authorization-bypass-in-category-structure-modification-1555f980)
- [Craft CMS authenticated RCE through Twig sandbox escape](https://junglewise.ai/threats/craft-cms-authenticated-rce-through-twig-sandbox-escape-32ee5ec1)
- [Craft CMS path traversal in ensurePathIsContained](https://junglewise.ai/threats/craft-cms-path-traversal-in-ensurepathiscontained-4adc3058)
