Exposure of Resource to Wrong Sphere Affecting craftcms/cms package, versions >=4.0.0-RC1, <4.18.2>=5.0.0-RC1, <5.10.6


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.23% (14th 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-18584433
  • published7 Aug 2026
  • disclosed6 Aug 2026
  • creditUnknown

Introduced: 6 Aug 2026

NewCVE-2026-72782  (opens in a new tab)
CWE-668  (opens in a new tab)

How to fix?

Upgrade craftcms/cms to version 4.18.2, 5.10.6 or higher.

Overview

craftcms/cms is a content management system.

Affected versions of this package are vulnerable to Exposure of Resource to Wrong Sphere via the elementId parameter, which allows interpolation of environment variables and secrets into a Twig template even when the Twig sandbox is enabled. An attacker can access sensitive environment variables and secrets by submitting specially crafted requests that include references to environment variables, and then exfiltrate their values using a blind error-based approach.

CVSS Base Scores

version 4.0
version 3.1