OctoberCMS's October CMS is affected in the october/system component by a flaw in the Twig sandbox security policy. When cms.safe_mode is enabled, the query builder remains in the sandbox allow-list while database write operations are not fully blocked. An authenticated backend user with Developer permissions can supply Twig template markup to perform insert, update, and delete operations on any database table. This combines an incomplete disallowed-input list with incorrect authorization enforcement, corresponding to CWE-184 and CWE-863 in the record. The fix also blocks insert, update, delete, and truncate operations on query builder and model objects within the Twig sandbox. The available evidence does not identify the exact internal policy rule that was missing or a specific backend endpoint used to submit the template.