Advisory

GHSA-h6jm-f4hh-fw27

Also known as: CVE-2026-26274

Summary

October CMS has Safe Mode Bypass via Twig Database Write Operations

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-04-21 16:44 UTC
Modified
2026-05-05 16:07 UTC

Affected packages and fixes

october/october

Packagist · All systems

Affected

  • introduced 0, fixed 3.7.14 (ecosystem)

Fixed versions

3.7.14

Fix

The export has no generic command for this ecosystem.

october/october

Packagist · All systems

Affected

  • introduced 4.0.0, fixed 4.1.10 (ecosystem)

Fixed versions

4.1.10

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences