CVE-2026-26274: October: Safe Mode Bypass via Twig Database Write Operations
A vulnerability was identified in the Twig sandbox security policy that allowed database write operations when cms.safemode is enabled. Backend users with Developer permissions could use Twig template markup to execute insert, update, and delete operations on any database table through the query builder, which is included in the sandbox allow-list.
Impact - Arbitrary database writes including modification or deletion of any table - Requires authenticated backend access with Developer permissions - Only relevant when cms.safemode is enabled (otherwise direct PHP injection is already possible)
Patches The vulnerability has been patched in v3.7.14 and v4.1.10. Write operations such as insert, update, delete, and truncate are now blocked on query builder and model objects within the Twig sandbox. All users are encouraged to upgrade to the latest patched version.
Workarounds If upgrading immediately is not possible: - Restrict Developer tool access to fully trusted administrators only
Reporter - Reported by Chris Alupului
Other sources
October is a Content Management System (CMS) and web platform. Prior to 3.7.14 and 4.1.10, a vulnerability was identified in the Twig sandbox security policy that allowed database write operations when cms.safemode is enabled. Backend users with Developer permissions could use Twig template markup to execute insert, update, and delete operations on any database table through the query builder, which is included in the sandbox allow-list. This vulnerability is fixed in 3.7.14 and 4.1.10.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-26274?
CVE-2026-26274 is considered a high-severity vulnerability due to its potential to bypass safe mode restrictions.
How do I fix CVE-2026-26274?
To fix CVE-2026-26274, upgrade October CMS to versions 3.7.14 or 4.1.10 or later.
What causes CVE-2026-26274?
CVE-2026-26274 is caused by a flaw in the Twig sandbox security policy that does not properly restrict database write operations.
Is CVE-2026-26274 present in all versions of October CMS?
CVE-2026-26274 affects all October CMS versions prior to 3.7.14 and 4.1.10.
What are the risks of exploiting CVE-2026-26274?
Exploiting CVE-2026-26274 could allow an attacker to manipulate the database and potentially compromise sensitive information.