CVE-2026-26274: October CMS has 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.
Published Apr 21, 2026 · Updated Apr 24, 2026
Affected packages
october/october
- Ecosystem
- Composer (PHP)
- Affected
- < 3.7.14
- Fixed in
- 3.7.14
- Check
composer show october/october
october/october
- Ecosystem
- Composer (PHP)
- Affected
- >= 4.0.0, < 4.1.10
- Fixed in
- 4.1.10
- Check
composer show october/october
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
A vulnerability was identified in the Twig sandbox security policy that allowed database write operations when cms.safe_mode 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.safe_modeis 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
Credited to Neosprings, daftspunk.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-63193
October: Media Library Crop Handler Bypasses Upload Extension Allowlist
medium5.5No fixNov 19, 2026GHSA-2xmm-m4wv-3fjh
October CMS: Incomplete Scheme Validation in Image Resizer
low3.9Sep 14, 2026CVE-2024-51991
October CMS Allows Unprotected SVG Rename in Media Manager
low1.1May 5, 2025CVE-2024-45962
October allows an admin account to upload PDF containing malicious JavaScript
low4.8No fixOct 2, 2024CVE-2023-25365
October CMS Cross-site Scripting vulnerability
high7.8No fixFeb 9, 2024
