What’s Vulnerable › Vulnerabilities
CVE-2026-22692: October CMS: Twig Sandbox Bypass via Collection Methods
- Severity: medium (CVSS 6.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-04-14 · updated 2026-10-26
- Weakness: CWE-284
Description
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.
Affected products
- octobercms october: before 3.7.13; from 4.0.0 before 4.1.5 — fixed in 3.7.13, 4.1.5
How to fix
Upgrade to a fixed version: octobercms october 3.7.13, 4.1.5. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-22692 or the next vulnerability affects your stack