Vulnerabilities

Vulnerability · GHSA-j697-8x93-7mp2

Twig sandbox allowlist bypass discloses sensitive values

Published Oct 5, 2026 · catalog updated Oct 5, 2026 · Twig sandbox allowlist bypass

Last checked Nov 1, 2026. A connected source was read within the last 7 days.

Open the advisory

Exploitation likelihood is not on this record for GHSA-j697-8x93-7mp2. A missing EPSS score is not a low risk. Compare Twig sandbox allowlist bypass with the linked advisory before you change production.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (Twig sandbox allowlist bypass).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
  • EPSS is missing. A missing score is not a low risk.
Severity
Medium—
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
Awaiting synchronization with FIRST
Remediation
Version ranges on file
Affected products
composer craftcms/cms

Six sandbox-allowlisted Twig filters — , , , , , — are registered without the flag (unlike / / / , which have it). Each resolves a caller-supplied string key via , which performs a raw property/getter dispatch (triggering Yii ) with dot-path graph traversal, never consulting the sandbox . This lets a sandboxed template read non-allowlisted getters and traverse the always-present global to disclose , database credentials, and auth tokens. Reachability gate (identical to published advisory GHSA-f5wm-88jv-g5hx): (default false) plus authenticated Control Panel access. B2 element-select condition rules need no element in scope. ### Impact Sandbox allowlist bypass yielding disclosure of ( public property — underpins CSRF tokens, cookie signing, and data encryption), database credentials, session/request data, and auth-cookie tokens. Read-only: invokes a key as a callable only when it is a real , which a Twig template cannot construct — so this is an arbitrary property/no-arg-getter READ and dot-path traversal, not an RCE. Report ID: 1719

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • composer craftcms/cms>= 4.0.0, < 4.18.8
  • composer craftcms/cms>= 5.0.0, < 5.11.0

How to fix GHSA-j697-8x93-7mp2

  • Upgrade

    GHSA-j697-8x93-7mp2 lists a fix boundary at 4.18.8. Compare the installed build with that boundary before you change production.

  • Version check

    Affected < 4.18.8

  • Advisory

    Open the inventory_github record and follow its fix.

  • Official advisories

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

Exploitation likelihood is not on this record for GHSA-j697-8x93-7mp2. A missing EPSS score is not a low risk. Compare Twig sandbox allowlist bypass with the linked advisory before you change production.

Which versions are affected?

Compare what you have installed with >= 4.0.0, < 4.18.8, >= 5.0.0, < 5.11.0. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

CWE-200: Exposure of Sensitive Information. EPSS is not on this record yet. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Technology hubs

Code

The project this record applies to. Exploit listings stay in References.

No public source repository is identified for this product.

Timeline

Detection, updates, and resolution for this record.

  1. Oct 5, 2026 · Maintainer security tabs

    Detected

    Six sandbox-allowlisted Twig filters — , , , , , — are registered without the flag (unlike / / / , which have it). Each resolves a caller-supplied string key via , which performs a raw property/getter dispatch (triggering Yii ) with dot-path graph traversal, never consulting the sandbox . This lets a sandboxed template read non-allowlisted getters and traverse the always-present global to disclose

Sources

  • Maintainer security tabsVendor advisoryGHSA-j697-8x93-7mp2

    Six sandbox-allowlisted Twig filters — , , , , , — are registered without the flag (unlike / / / , which have it). Each resolves a caller-supplied string key via , which performs a raw property/getter dispatch (triggering Yii ) with dot-path graph traversal, never consulting the sandbox . This lets a sandboxed template read non-allowlisted getters and traverse the always-present global to disclose

    github.com

Freshness

Last verified in this catalog Oct 5, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.

  • Maintainer security tabsNov 1, 2026