Protection Mechanism Failure Affecting craftcms/cms package, versions >=4.0.0-RC1, <4.18.3>=5.0.0-RC1, <5.10.7


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.54% (43rd 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-18584424
  • published7 Aug 2026
  • disclosed6 Aug 2026
  • creditUnknown

Introduced: 6 Aug 2026

NewCVE-2026-72781  (opens in a new tab)
CWE-693  (opens in a new tab)

How to fix?

Upgrade craftcms/cms to version 4.18.3, 5.10.7 or higher.

Overview

craftcms/cms is a content management system.

Affected versions of this package are vulnerable to Protection Mechanism Failure through the SecurityPolicy process. An attacker can execute arbitrary code on the server by rendering a malicious Twig template after authenticating to the control panel. This is only exploitable if the attacker has authenticated access to the control panel and can render Twig templates, even when the Twig sandbox is enabled through enableTwigSandbox().

CVSS Base Scores

version 4.0
version 3.1