Vulnerability · Published Apr 14, 2026 · Assigned by GitHub_M

CVE-2026-22692October CMS: Twig Sandbox Bypass via Collection Methods

Medium 4.9

In plain English

A medium-severity improper access control in october from octobercms. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.9Medium
Exploit odds (30 days)0.4%top 66.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistoctober/rain4.1.5GHSA-m5qg-jc75-4jp6
Packagistoctober/rain3.7.13GHSA-m5qg-jc75-4jp6

Affected products (as reported)

VendorProductVersions
octobercms october < 3.7.13>= 4.0.0, < 4.1.5

Weakness: CWE-693, CWE-284 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

References