October Rain has a Twig Sandbox Bypass via Collection Methods
Moderate severity
GitHub Reviewed
Published
Apr 14, 2026
in
octobercms/october
•
Updated Apr 14, 2026
Package
Affected versions
>= 4.0.0, <= 4.1.4
<= 3.7.12
Patched versions
4.1.5
3.7.13
Description
Published by the National Vulnerability Database
Apr 14, 2026
Published to the GitHub Advisory Database
Apr 14, 2026
Reviewed
Apr 14, 2026
Last updated
Apr 14, 2026
A sandbox bypass vulnerability was identified in the optional Twig safe mode feature (
CMS_SAFE_MODE). Certain methods on thecollect()helper were not properly restricted, allowing authenticated users with template editing permissions to bypass sandbox protections.Impact
CMS_SAFE_MODEenabled (disabled by default)Patches
The vulnerability has been patched in v4.1.5 and v3.7.13. All users who have enabled safe mode are encouraged to upgrade to the latest patched version.
Workarounds
If upgrading immediately is not possible:
CMS_SAFE_MODEif untrusted template editing is not requiredReferences
References