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

High severity, published 2026-07-02. Update craftcms/cms to 5.9.21 or later: composer update craftcms/cms.

Canonical URL: https://buzzphp.com/security/ghsa-qq2c-2q8j-jh27 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-07-02 |
| Updated | 2026-07-02 |
| CVE | [CVE-2026-50279](https://nvd.nist.gov/vuln/detail/CVE-2026-50279) |
| GHSA | [GHSA-qq2c-2q8j-jh27](https://github.com/advisories/GHSA-qq2c-2q8j-jh27) |
| Weakness | CWE-285 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| craftcms/cms | >= 5.0.0-RC1, < 5.9.21 | 5.9.21 |

## What to do

Update craftcms/cms to 5.9.21 or later: 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

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():



## Links

- [GHSA-qq2c-2q8j-jh27 on GitHub](https://github.com/advisories/GHSA-qq2c-2q8j-jh27)
- [CVE-2026-50279 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-50279)
- [All Composer security advisories](https://buzzphp.com/security)
