Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/cms
  4. ›
  5. CVE-2026-50283

CVE-2026-50283: Craft CMS: Unauthorized Deletion of Source Assets During File Replacement

July 2, 2026

We have identified an authorization issue in Craft CMS AssetsController::actionReplaceFile that can delete a source asset without source delete permission by supplying both assetId and sourceAssetId.

References

  • github.com/advisories/GHSA-qh45-9g5p-m2v4
  • github.com/craftcms/cms/commit/2c2579c7f1030872423f268d0c8b48377101961d
  • github.com/craftcms/cms/security/advisories/GHSA-qh45-9g5p-m2v4
  • nvd.nist.gov/vuln/detail/CVE-2026-50283

Code Behaviors & Features

Detect and mitigate CVE-2026-50283 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 4.0.0-RC1 before 4.17.14, all versions starting from 5.0.0-RC1 before 5.9.21

Fixed versions

  • 4.17.14
  • 5.9.21

Solution

Upgrade to versions 4.17.14, 5.9.21 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-639: Authorization Bypass Through User-Controlled Key

Source file

packagist/craftcms/cms/CVE-2026-50283.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:25 +0000.