CVE-2026-63179: Winter: Local File Inclusion through @import directives in LESS compilation of backend customizable stylesheets and theme assets
Affected versions of Winter CMS allow authenticated backend users with the following permissions to disclose arbitrary files readable by the PHP process by injecting @import (inline) "<path>" directives into LESS source that the backend compiles. Four entry points share the same root cause:
- Brand Settings
BrandSetting.custom_cssfield (backend.manage_branding) — compiled inline into every backend page’s<style>block. - Editor Settings
EditorSetting.html_custom_stylesfield (backend.manage_editor) — compiled inline into every backend page’s<style>block. - Mail Brand Settings
MailBrandSettingcolour-picker fields (system.manage_mail_templates) — values are concatenated into LESS source viaLess_Parser::ModifyVars()with no escaping, so any value the form validator does not reject can carry an@importdirective. - Theme
.less/.sass/.scssassets (cms.manage_assets) — compiled throughSystem\Classes\CombineAssetswhen served, with the sameLess_Parserconfiguration. Both absolute paths and..traversal escape from the asset’s own tree were exploitable.
The leaked content includes any file the web process can read, most importantly the application .env file (disclosing APP_KEY and database credentials).
To actively exploit this issue, an attacker would need an authenticated backend account with one of the permissions listed above. By default these are assigned to the built-in Developer role.
References
- github.com/advisories/GHSA-58fp-mcx6-7qf9
- github.com/wintercms/storm/commit/af770331c683e628533a6ec2991285d6e10a4d6c
- github.com/wintercms/winter/commit/130f0ea43e9228bf0d129b481da1cdfbcc4b4456
- github.com/wintercms/winter/releases/tag/v1.2.13
- github.com/wintercms/winter/security/advisories/GHSA-58fp-mcx6-7qf9
- nvd.nist.gov/vuln/detail/CVE-2026-63179
Code Behaviors & Features
Detect and mitigate CVE-2026-63179 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →