Skip to main content
← All vulnerabilities
CVE-2026-22692GHSA-M5QG-JC75-4JP6

October CMS: Twig Sandbox Bypass via Collection Methods

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.7.13, 4.1.5
1 proof of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

October is a Content Management System (CMS) and web platform. Versions prior to 3.7.13 and versions 4.0.0 through 4.1.4 contain a sandbox bypass vulnerability in the optional Twig safe mode feature (CMS_SAFE_MODE). Certain methods on the collect() helper were not properly restricted, allowing authenticated users with template editing permissions to bypass sandbox protections. Exploitation requires authenticated backend access with CMS template editing permissions and only affects installations with CMS_SAFE_MODE enabled (disabled by default). This issue has been fixed in versions 3.7.13 and 4.1.5. To workaround this issue, users can disable CMS_SAFE_MODE if untrusted template editing is not required, and restrict CMS template editing permissions to fully trusted administrators only.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • octobercms october

    fixed in 3.7.13; From 4.0.0 · fixed in 4.1.5

  • october/rainPackagist

    From 4.0.0 · fixed in 4.1.5

  • october/rainPackagist

    fixed in 3.7.13

References 2

GitHub · octobercms/october

GitHub · lukasz-rybak/CVE-2026-22692