Template Injection Affecting craftcms/cms package, versions >=4.0.0-RC1, <4.17.0-beta.1>=5.0.0-RC1, <5.9.0-beta.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (26th 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-15440548
  • published10 Mar 2026
  • disclosed3 Mar 2026
  • creditHesham

Introduced: 3 Mar 2026

NewCVE-2026-28783  (opens in a new tab)
CWE-1336  (opens in a new tab)
CWE-184  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade craftcms/cms to version 4.17.0-beta.1, 5.9.0-beta.1 or higher.

Overview

craftcms/cms is a content management system.

Affected versions of this package are vulnerable to Template Injection via the Twig function blocklist bypass. An attacker can execute arbitrary code, read files, or perform server-side request forgery by invoking unblocked PHP functions through non-Closure arrow functions in Twig, provided they have sufficient permissions, such as a compromised admin account, access to the System Messages utility, or allowAdminChanges enabled on production. This is only exploitable if one of these conditions is met.

CVSS Base Scores

version 4.0
version 3.1