Medium

October CMS has Safe Mode Bypass via Twig Database Write Operations

  • Disclosed: 21.04.2026
  • Updated: 11.10.2026 10:22

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_mode 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

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package october/october < 3.7.14, >= 4.0.0, < 4.1.10 3.7.14, 4.1.10

References

CVSS score 6.6/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-184, CWE-863
Platform
Composer
Package
october/october
Disclosed
21.04.2026
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-h6jm-f4hh-fw27 - CC BY 4.0

Vulnerability history: october/october

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (13) in the archive
Total entries
13
First → latest
06.2020 09.2026
Without a fix
3
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 4
  • Medium 5
  • Low 3

Disclosures per year

  1. 2020: 1
  2. 2021: 1
  3. 2022: 5
  4. 2023: 1
  5. 2024: 2
  6. 2025: 1
  7. 2026: 2
Severity:
  1. October CMS has Safe Mode Bypass via Twig Database Write Operations this entry
    Medium · 6.6 CVE-2026-26274 < 3.7.14, >= 4.0.0, < 4.1.10 3.7.14, 4.1.10
  2. High · 7.8 CVE-2023-25365 <= 3.2.0 no fix
  3. High · 8.8 CVE-2017-16244 < 1.0.427 1.0.427
  4. High · 8.1 CVE-2018-1999009 < 1.0.437 1.0.437
  5. Critical · 9.8 CVE-2017-1000194 < 1.0.413 1.0.413
  6. High · 7.2 CVE-2021-41126 >= 2.1.0, < 2.1.12 2.1.12

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.