Intel

AIKIDO-2026-695759

craftcms/cms is vulnerable to Code Injection

CVE-2026-112772Published 4 days ago
November 3, 2026

88

CVE Score

High

Code Injection

Are you affected? Scan for Free

TL;DR

Before the fix, the #[AllowedInSandbox] method Asset::getMimeType passed a caller-supplied transform array to ImageTransforms::normalizeTransform, which spread it unfiltered into Craft::createObject; on and as keys attached Yii behaviors and event handlers to the ImageTransform model and ran code as the web user. Any signed-in Control Panel user who could influence content rendered by the Twig sandbox, such as system email message text, could reach it on installations with enableTwigSandbox turned on; it is off by default. An earlier guard rejected only the class key and left these keys intact. The fix passes transform arrays through Component::cleanseConfig, which strips on and as keys before object creation.

How do I fix this?

Upgrade the craftcms/cms package to 5.11.0 or later.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and enable the Twig sandbox and let any signed-in Control Panel user influence content it renders, such as system email messages.

Versions

5.0.0 - 5.10.14

Fixed in 5.11.0

Background info

craftcms/cms is vulnerable to Code Injection in versions 5.0.0 - 5.10.14.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea