Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. winter/wn-backend-module
  4. ›
  5. CVE-2026-63179

CVE-2026-63179: Winter: Local File Inclusion through @import directives in LESS compilation of backend customizable stylesheets and theme assets

August 20, 2026

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_css field (backend.manage_branding) — compiled inline into every backend page’s <style> block.
  • Editor Settings EditorSetting.html_custom_styles field (backend.manage_editor) — compiled inline into every backend page’s <style> block.
  • Mail Brand Settings MailBrandSetting colour-picker fields (system.manage_mail_templates) — values are concatenated into LESS source via Less_Parser::ModifyVars() with no escaping, so any value the form validator does not reject can carry an @import directive.
  • Theme .less/.sass/.scss assets (cms.manage_assets) — compiled through System\Classes\CombineAssets when served, with the same Less_Parser configuration. 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 →

Affected versions

All versions before 1.2.13

Fixed versions

  • 1.2.13

Solution

Upgrade to version 1.2.13 or above.

Impact 4.9 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

packagist/winter/wn-backend-module/CVE-2026-63179.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 09 Sep 2026 12:21:31 +0000.