Intel

AIKIDO-2026-872270

craftcms/cms is vulnerable to Exposure of Sensitive Information

CVE-2026-72782Published Jul 31, 2026
July 31, 2026

78

CVE Score

High

Exposure of Sensitive Information

Are you affected? Scan for Free

TL;DR

Craft CMS interpolates referenced environment variables and secrets into a Twig template before rendering it, even when the Twig sandbox is enabled. A string of the form ${ENV_VAR} is replaced with the corresponding environment variable or secrets-file value, giving sandboxed templates access the sandbox is meant to deny. An authenticated control-panel user can incrementally leak secrets through blind error-based rendering, exposing the security key, database and mail credentials, and other secrets. The fix stops secret interpolation in sandboxed template contexts.

How do I fix this?

Upgrade the craftcms/cms library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and authenticated control-panel users can trigger sandboxed Twig rendering that interpolates ${ENV_VAR}-style secret references (for example via element condition templates).

Versions

4.0.0 - 4.18.1

Fixed in 4.18.2

5.0.0 - 5.10.5

Fixed in 5.10.6

Background info

craftcms/cms is vulnerable to Exposure of Sensitive Information in versions 4.0.0 - 4.18.1 and 5.0.0 - 5.10.5.

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