Advisory

GHSA-m5qg-jc75-4jp6

Also known as: CVE-2026-22692

Summary

October Rain has a Twig Sandbox Bypass via Collection Methods

Details

A sandbox bypass vulnerability was identified in the optional Twig safe mode feature (CMS_SAFE_MODE). Certain methods on the collect() helper were not properly restricted, allowing authenticated users with template editing permissions to bypass sandbox protections.

Impact

  • Bypass of Twig sandbox restrictions
  • Only affects installations with CMS_SAFE_MODE enabled (disabled by default)
  • Requires authenticated backend access with CMS template editing permissions

Patches
The vulnerability has been patched in v4.1.5 and v3.7.13. All users who have enabled safe mode are encouraged to upgrade to the latest patched version.

Workarounds
If upgrading immediately is not possible:

  • Disable CMS_SAFE_MODE if untrusted template editing is not required
  • Restrict CMS template editing permissions to fully trusted administrators only

References

  • Reported by Łukasz Rybak

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-04-14 20:02 UTC
Modified
2026-04-14 20:34 UTC

Affected packages and fixes

october/rain

Packagist · All systems

Affected

  • introduced 4.0.0, fixed 4.1.5 (ecosystem)

Fixed versions

4.1.5

Fix

The export has no generic command for this ecosystem.

october/rain

Packagist · All systems

Affected

  • introduced 0, fixed 3.7.13 (ecosystem)

Fixed versions

3.7.13

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