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

- Severity: Medium 4.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-04-14T16:48:04.730Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-m5qg-jc75-4jp6
- Weaknesses: CWE-284, CWE-693
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- octobercms october: < 3.7.13; >= 4.0.0, < 4.1.5; before 3.7.13; from 4.0.0 before 4.1.5
- october/rain (Packagist): from 4.0.0 before 4.1.5; before 3.7.13

## Every score

- GitHub_M: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`

## References

- <https://github.com/octobercms/october/security/advisories/GHSA-m5qg-jc75-4jp6> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22692> (advisory)
- <https://github.com/octobercms/october> (package)

## Sources

- CVE List: [CVE-2026-22692](https://www.cve.org/CVERecord?id=CVE-2026-22692), CVE Terms of Use, modified 2026-04-14
- GitHub Advisory Database: [GHSA-m5qg-jc75-4jp6](https://github.com/advisories/GHSA-m5qg-jc75-4jp6), CC-BY-4.0, modified 2026-04-14
- NVD: [CVE-2026-22692](https://nvd.nist.gov/vuln/detail/CVE-2026-22692), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-22692 · Whole record: https://cve.day/CVE-2026-22692.json · Rebuilt by cve.day 2026-11-25T22:59:18.697Z
