{"id":"CVE-2026-22692","aliases":["CVE-2026-22692","GHSA-m5qg-jc75-4jp6"],"related":[],"kind":"vulnerability","state":"published","title":"October CMS: Twig Sandbox Bypass via Collection Methods","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\n### Impact\n- Bypass of Twig sandbox restrictions\n- Only affects installations with `CMS_SAFE_MODE` enabled (disabled by default)\n- Requires authenticated backend access with CMS template editing permissions\n\n### Patches\nThe 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.\n\n### Workarounds\nIf upgrading immediately is not possible:\n- Disable `CMS_SAFE_MODE` if untrusted template editing is not required\n- Restrict CMS template editing permissions to fully trusted administrators only\n\n### References\n- Reported by Łukasz Rybak","format":"markdown","source":"ghsa"},{"lang":"es","text":"October es un Sistema de Gestión de Contenidos (CMS) y plataforma web. Las versiones anteriores a la 3.7.13 y las versiones 4.0.0 a la 4.1.4 contienen una vulnerabilidad de bypass de sandbox en la característica opcional de modo seguro de Twig (CMS_SAFE_MODE). Ciertos métodos en el ayudante collect() no estaban correctamente restringidos, permitiendo a usuarios autenticados con permisos de edición de plantillas saltarse las protecciones de sandbox. La explotación requiere acceso autenticado al backend con permisos de edición de plantillas de CMS y solo afecta a instalaciones con CMS_SAFE_MODE habilitado (deshabilitado por defecto). Este problema ha sido solucionado en las versiones 3.7.13 y 4.1.5. Para aplicar una solución alternativa a este problema, los usuarios pueden deshabilitar CMS_SAFE_MODE si no se requiere la edición de plantillas no confiables, y restringir los permisos de edición de plantillas de CMS solo a administradores de plena confianza.","source":"nvd"}],"published":"2026-04-14T16:48:04.730Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-284","CWE-693"],"affected":[{"ranges":[{"version":"< 3.7.13","status":"affected"},{"version":">= 4.0.0, < 4.1.5","status":"affected"}],"vendor":"octobercms","product":"october","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.1.5"}],"ecosystem":"Packagist","package":"october/rain","purl":"pkg:composer/october/rain","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.7.13"}],"ecosystem":"Packagist","package":"october/rain","purl":"pkg:composer/october/rain","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.7.13"},{"status":"affected","introduced":"4.0.0","fixed":"4.1.5"}],"vendor":"octobercms","product":"october","cpe":"cpe:2.3:a:octobercms:october:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/octobercms/october/security/advisories/GHSA-m5qg-jc75-4jp6","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22692","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/octobercms/october","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-14T19:42:23.040Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-22692","url":"https://www.cve.org/CVERecord?id=CVE-2026-22692","licence":"CVE Terms of Use","modified":"2026-04-14T19:42:40.460Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m5qg-jc75-4jp6","url":"https://github.com/advisories/GHSA-m5qg-jc75-4jp6","licence":"CC-BY-4.0","modified":"2026-04-14T20:34:13.945Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-22692","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22692","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:18.697Z","epss":{"score":0.0042,"percentile":0.38234,"date":"2026-12-01T12:00:22.000Z"}}