October CMS has Safe Mode Bypass via CSS Preprocessor Compilers
Moderate severity
GitHub Reviewed
Published
Apr 21, 2026
in
octobercms/october
•
Updated Apr 21, 2026
Package
Affected versions
< 3.7.14
>= 4.0.0, < 4.1.10
Patched versions
3.7.14
4.1.10
Description
Published to the GitHub Advisory Database
Apr 21, 2026
Reviewed
Apr 21, 2026
Last updated
Apr 21, 2026
A server-side information disclosure vulnerability was identified in the handling of CSS preprocessor files. Backend users with Editor permissions could craft
.less,.sass, or.scssfiles that leverage the compiler's import functionality to read arbitrary files from the server. This worked even withcms.safe_modeenabled.Impact
cms.safe_modeis enabled (otherwise direct PHP injection is already possible)Patches
The vulnerability has been patched in v3.7.14 and v4.1.10. When
cms.safe_modeis enabled,.less,.sass, and.scssfiles can no longer be created, uploaded, or edited across the CMS editor, media manager, and file upload interfaces. All users are encouraged to upgrade to the latest patched version.Workarounds
If upgrading immediately is not possible:
Set
cms.editable_asset_typesconfig to['css', 'js']to remove preprocessor file types from the editorRestrict Editor tool access to fully trusted administrators only
Reported by Chris Alupului
References