October CMS: Twig Sandbox Bypass via Collection Methods
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-22692
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 07:08 UTC · Revision 1
Source evidence
October CMS: Twig Sandbox Bypass via Collection Methods
core-osv · Original sourcePublished 14 Apr 2026, 16:48 UTC
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.
osv:CVE-2026-22692
Complete source record
{
"id": "a8cae6d230e2a75381d1f1502bd3dda2a9fb92d163ffefe686b022c0923410ad",
"url": "https://osv.dev/vulnerability/CVE-2026-22692",
"method": "structured",
"payload": {
"kind": "advisory",
"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.",
"evidence": "osv:CVE-2026-22692",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-22692",
"aliases": [
"CVE-2026-22692",
"GHSA-m5qg-jc75-4jp6"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/octobercms/october",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "6130d6d694f535340b2c58db29702cbcd6eb29a4"
},
{
"introduced": "306557b3f5aeca2ad4c52f7c012a492e079fd1ec"
},
{
"fixed": "174b52d1cdad3ff5b276639f01abbd6d0272167f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:octobercms:october:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.7.13"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:octobercms:october:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.1.5"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v4.1.4",
"v4.1.0",
"v4.0.21",
"v4.0.19",
"v4.0.18",
"v4.0.15",
"v4.0.3",
"v4.0.2",
"v4.0.0",
"v3.7.10",
"v3.7.3",
"v3.7.0",
"v3.6.4",
"v3.6.1",
"v3.6.0",
"v3.5.8",
"v3.5.7",
"v3.5.4",
"v3.5.2",
"v3.5.1",
"v3.5.0",
"v3.4.14",
"v3.4.10",
"v3.4.9",
"v3.4.6",
"v3.4.1",
"v3.4.0",
"v3.3.11",
"v3.3.9",
"v3.3.7",
"v3.3.3",
"v3.3.0",
"v3.2.11",
"v3.2.0",
"v3.1.26",
"v3.1.22",
"v3.1.14",
"v3.1.12",
"v3.1.1",
"v3.1.0",
"v3.0.74",
"v3.0.62",
"v3.0.61",
"v3.0.56",
"v3.0.46",
"v3.0.45",
"v3.0.42",
"v3.0.40",
"v3.0.22",
"v3.0.17",
"v3.0.10",
"v3.0.9",
"v3.0.7",
"v3.0.6",
"v3.0.2",
"v3.0.0",
"v2.1.26",
"v2.1.25",
"v2.1.24",
"v2.1.23",
"v2.1.22",
"v2.1.21",
"v2.1.20",
"v2.1.16",
"v2.1.12",
"v2.1.10",
"v2.1.8",
"v2.1.6",
"v2.1.5",
"v2.1.3",
"v2.1.0",
"v2.0.29",
"v2.0.27",
"v2.0.16",
"v2.0.15",
"v2.0.14",
"v2.0.13",
"v2.0.10",
"v2.0.3",
"v2.0.0",
"v1.1.4",
"v1.1.3",
"v1.1.2",
"v1.1.1",
"v1.1.0",
"v1.0.468",
"v1.0.467",
"v1.0.466",
"v1.0.464",
"v1.0.463",
"v1.0.462",
"v1.0.461",
"v1.0.460",
"v1.0.459",
"v1.0.458",
"v1.0.457",
"v1.0.455",
"v1.0.456",
"v1.0.454",
"v1.0.453",
"v1.0.452",
"v1.0.447",
"v1.0.451",
"v1.0.450",
"v1.0.449",
"v1.0.448",
"v1.0.446",
"v1.0.445",
"v1.0.444",
"v1.0.443",
"v1.0.442",
"v1.0.441",
"v1.0.440",
"v1.0.439",
"v1.0.438",
"v1.0.437",
"v1.0.436",
"v1.0.434",
"v1.0.433",
"v1.0.432",
"v1.0.431",
"v1.0.430",
"v1.0.429",
"v1.0.428",
"v1.0.427",
"v1.0.426",
"v1.0.425",
"v1.0.424",
"v1.0.423",
"v1.0.422",
"v1.0.421",
"v1.0.419",
"v1.0.420",
"v1.0.415",
"v1.0.418",
"v1.0.417",
"v1.0.416",
"v1.0.414",
"v1.0.413",
"v1.0.411",
"v1.0.412",
"v1.0.410",
"v1.0.409",
"v1.0.408",
"v1.0.407",
"v1.0.406",
"v1.0.405",
"v1.0.404",
"v1.0.396",
"v1.0.403",
"v1.0.402",
"v1.0.401",
"v1.0.400",
"v1.0.399",
"v1.0.398",
"v1.0.397",
"v1.0.395",
"v1.0.394",
"v1.0.393",
"v1.0.392",
"v1.0.391",
"v1.0.390",
"v1.0.389",
"v1.0.388",
"v1.0.387",
"v1.0.386",
"v1.0.385",
"v1.0.384",
"v1.0.383",
"v1.0.382",
"v1.0.381",
"v1.0.380",
"v1.0.379",
"v1.0.378",
"v1.0.377",
"v1.0.376",
"v1.0.375",
"v1.0.374",
"v1.0.373",
"v1.0.372",
"v1.0.371",
"v1.0.370",
"v1.0.367",
"v1.0.366",
"v1.0.365",
"v1.0.364",
"v1.0.363",
"v1.0.362",
"v1.0.361",
"v1.0.360",
"v1.0.359",
"v1.0.358",
"v1.0.356",
"v1.0.355",
"v1.0.354",
"v1.0.353",
"v1.0.352",
"v1.0.351",
"v1.0.346",
"v1.0.345",
"v1.0.344",
"v1.0.343",
"v1.0.342",
"v1.0.341",
"v1.0.340",
"v1.0.338",
"v1.0.334",
"v1.0.333",
"v1.0.331",
"v1.0.330",
"v1.0.329",
"v1.0.328",
"v1.0.327",
"v1.0.326",
"v1.0.325",
"v1.0.324",
"v1.0.323",
"v1.0.322",
"v1.0.321",
"v1.0.320",
"v1.0.319"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-22692.json"
}
}
],
"modified": "2026-10-28T02:30:26.587726472Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22692.json",
"https://github.com/octobercms/october/security/advisories/GHSA-m5qg-jc75-4jp6",
"https://nvd.nist.gov/vuln/detail/CVE-2026-22692"
],
"provider_metadata": {
"cwe_ids": [
"CWE-284",
"CWE-693"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22692.json"
}
},
"related_cves": [
{
"value": "CVE-2026-22692",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 493242,
"published_at": "2026-04-14T16:48:04.73+00:00"
}