BuzzPHP
LightDarkSystem

Craft CMS: Authorship spoofing in `entries/save-entry` via pre-check/post-mutation authorization gap

High severity. Published 2 July 2026. Update craftcms/cms to 5.9.21 or later: composer update craftcms/cms.

Which versions are affected?

PackageAffected versionsFixed in
craftcms/cms (opens in a new tab)>= 5.0.0-RC1, < 5.9.215.9.21

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show craftcms/cms
composer audit

Advisory details

SeverityHigh
Published
Updated
CVECVE-2026-50279 (opens in a new tab)
GHSAGHSA-qq2c-2q8j-jh27 (opens in a new tab)
WeaknessCWE-285

What the advisory says

Summary

EntriesController::actionSaveEntry() performs entry-edit permission checks before request-controlled author changes are applied to the model. The subsequent author mutation path accepts attacker-supplied authors / author parameters and allows the change when the current user is one of the old authors. Because the controller does not re-run authorization after mutating the author list, a low-privileged user can reassign an entry’s authorship to another user without holding the dedicated peer-author-change permission.

Details The control flow begins in EntriesController.php:249. actionSaveEntry() loads the entry and enforces edit permissions before calling populateEntryModel():

Source: GHSA-qq2c-2q8j-jh27 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories