BuzzPHP
LightDarkSystem

Craft CMS: RCE via missing cleanseConfig in FieldsController::actionRenderCardPreview

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

Which versions are affected?

PackageAffected versionsFixed in
craftcms/cms (opens in a new tab)>= 5.5.0, <= 5.9.135.9.14

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-56382 (opens in a new tab)
GHSAGHSA-86vw-x4ww-x467 (opens in a new tab)
WeaknessCWE-94

What the advisory says

The actionRenderCardPreview() method in FieldsController passes the fieldLayoutConfig POST parameter directly to Fields::createLayout() without calling Component::cleanseConfig(). This allows Yii2 event handler injection via on eventName keys in the config array, leading to arbitrary code execution.

This is the same vulnerability pattern that was fixed in GHSA-4484-8v2f-5748 (same file, fldComponent method correctly uses cleanseConfig), GHSA-qx2q-q59v-wf3j (EntryTypesController), and GHSA-2fph-6v5w-89hh (ElementIndexesController).

PoC

As an admin user with a valid session:

When the FieldLayout object is constructed, Yii2 processes the on init key as an event handler registration.

Source: GHSA-86vw-x4ww-x467 (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