GitHub Advisoryadvisory · Packagist

GHSA-h6jm-f4hh-fw27 October CMS has Safe Mode Bypass via Twig Database Write Operations

MEDIUM Published 2026-04-21 Modified 2026-04-24 Official page ↗
Aliases
CVE-2026-26274
Ecosystem
Packagist
Packages
october/october
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-184, CWE-863
Reviewed
2026-04-21

Affected packages

• Packagist october/october: < 3.7.14 → fixed in 3.7.14 • Packagist october/october: >= 4.0.0, < 4.1.10 → fixed in 4.1.10

Description

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 • Reported by Chris Alupului

Related

Alias · CVE (1)

  • CVE-2026-26274 October is a Content Management System (CMS) and web platform. vulnerability

Weakness · CWE (2)

  • CWE-184 Incomplete List of Disallowed Inputs weakness
  • CWE-863 Incorrect Authorization weakness

References