All vulnerabilities

Servers and applications

CVE-2026-22692

Twig Sandbox Bypass via Collection Methods

Severity
Medium 6.8
Published
14 Apr 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
3.7.13, 4.1.5
Exploit chance
0.4% in the next 30 daysHigher than 36% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Improper access control (CWE-284)Protection mechanism failure (CWE-693)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
Also known as
GHSA-m5qg-jc75-4jp6
Sources
NVD, Project advisories (GitHub)

Description

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.

  • 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
From octobercms/october's security advisory.

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
Workarounds as given by octobercms/october's security advisory.

Affected software

SoftwareAffected versions
October CMSServers and applications · cpe:a:octobercms:october
  • Every version before 3.7.13
  • From 4.0.0 before 4.1.5
October CMSServers and applications · github:octobercms/october
  • Every version before 3.7.13

About October CMS

content management system

From Wikidata, CC0 1.0.
Monthly downloads (Packagist)
2,621Packagist, 15 Nov 2026
Total downloads (Packagist)
1,056,452Packagist, 15 Nov 2026
GitHub stars
11,159GitHub, 15 Nov 2026
Forks
2,201GitHub, 15 Nov 2026
Latest release
v4.4.0GitHub, 15 Nov 2026
Released
30 Aug 2026GitHub
License
MIT LicenseWikidata
Written in
PHPWikidata
First released
15 May 2014Wikidata
First published on GitHub
26 Nov 2013GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-22692
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-22692
  • GitHub Advisory Database https://github.com/advisories/GHSA-m5qg-jc75-4jp6
  • github.com https://github.com/octobercms/october/security/advisories/GHSA-m5qg-jc75-4jp6