Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') Affecting craftcms/cms package, versions >=4.0.0-RC1, <4.16.18>=5.0.0-RC1, <5.8.22


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.3% (54th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-CRAFTCMSCMS-15253636
  • published10 Feb 2026
  • disclosed9 Feb 2026
  • creditrlarabee, Raj Chowdhury

Introduced: 9 Feb 2026

CVE-2026-25498  (opens in a new tab)
CWE-470  (opens in a new tab)

How to fix?

Upgrade craftcms/cms to version 4.16.18, 5.8.22 or higher.

Overview

craftcms/cms is a content management system.

Affected versions of this package are vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') via the assembleLayoutFromPost() function. An attacker can execute arbitrary system commands on the server by injecting malicious configuration data into the fieldLayout POST parameter, which is processed without proper sanitization and passed to object creation routines.

CVSS Base Scores

version 4.0
version 3.1