Description
Winter CMS is a content management system built on the Laravel PHP framework. In versions up to and including 1.2.12, authenticated backend users can disclose arbitrary files readable by the PHP process by injecting @import (inline) directives into LESS source that the backend compiles, because the LESS parser was instantiated without a safe import resolver and fell back to the raw attacker-supplied path when no allowed root matched. The flaw is reachable through four entry points that share the same root cause: the Brand Settings custom_css field, the Editor Settings html_custom_styles field, the Mail Brand Settings colour-picker fields whose values are concatenated into LESS source without escaping, and theme .less, .sass, and .scss assets compiled when served. Both absolute paths and .. traversal outside the asset's own tree were accepted, so an attacker could read any file the web process can access, most significantly the application .env file and the APP_KEY and database credentials it contains. Exploitation requires a backend account holding one of the associated permissions, which are assigned by default to the built-in Developer role. This issue is fixed in version 1.2.13.
Published: 2026-08-26
Score: 4.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises because Winter CMS, versions 1.2.12 and earlier, compiles backend‑supplied LESS stylesheets without a safe import resolver. Authenticated users with backend permissions—typically those in the default Developer role—can insert @import directives that reference arbitrary file paths. When the parser fails to find a matching import root, it falls back to the raw path supplied by the attacker. This allows disclosure of any file readable by the PHP process, including sensitive configuration files such as .env, APP_KEY, and database credentials. The flaw is accessed through four application paths: the custom_css field in Brand Settings, the html_custom_styles field in Editor Settings, mail brand colour‑picker values concatenated into LESS, and theme .less, .sass, and .scss assets that are compiled when served.

Affected Systems

Affected systems are installations of Winter CMS up to and including version 1.2.12. The issue does not impact other CMS products or newer Winter releases. All users with designated backend privileges can exploit it, and the default Developer role provides the necessary permissions. The problem is resolved in Winter CMS 1.2.13, where the LESS parser is instantiated with a safe import resolver.

Risk and Exploitability

The CVSS score of 4.9 indicates a moderate severity, and EPSS data is unavailable, so the likelihood of exploitation cannot be precisely quantified. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. An attacker requires a backend account with permissions such as the Developer role; user enumeration is not necessary. However, once the required role is present, the attacker can read any file the PHP process can access, which poses a significant confidentiality risk. Organizations should treat the vulnerability as a high‑risk item for accounts with backend privileges until the security fix is applied.

Generated by OpenCVE AI on August 26, 2026 at 20:11 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Winter CMS version 1.2.13 or later, where a safe import resolver has been implemented.
  • Restrict or remove the Developer role from backend accounts that do not need to create or edit stylesheets and theme assets; use least privilege.
  • If an upgrade cannot be performed immediately, eliminate or temporarily disable backend features that allow custom CSS and theme asset compilation for users with the Developer role until the patch is applied.

Generated by OpenCVE AI on August 26, 2026 at 20:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-58fp-mcx6-7qf9 Winter: Local File Inclusion through @import directives in LESS compilation of backend customizable stylesheets and theme assets
History

Wed, 26 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 26 Aug 2026 20:00:00 +0000

Type Values Removed Values Added
First Time appeared Wintercms
Wintercms winter
Vendors & Products Wintercms
Wintercms winter

Wed, 26 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
Description Winter CMS is a content management system built on the Laravel PHP framework. In versions up to and including 1.2.12, authenticated backend users can disclose arbitrary files readable by the PHP process by injecting @import (inline) directives into LESS source that the backend compiles, because the LESS parser was instantiated without a safe import resolver and fell back to the raw attacker-supplied path when no allowed root matched. The flaw is reachable through four entry points that share the same root cause: the Brand Settings custom_css field, the Editor Settings html_custom_styles field, the Mail Brand Settings colour-picker fields whose values are concatenated into LESS source without escaping, and theme .less, .sass, and .scss assets compiled when served. Both absolute paths and .. traversal outside the asset's own tree were accepted, so an attacker could read any file the web process can access, most significantly the application .env file and the APP_KEY and database credentials it contains. Exploitation requires a backend account holding one of the associated permissions, which are assigned by default to the built-in Developer role. This issue is fixed in version 1.2.13.
Title Winter: Local File Inclusion through @import directives in LESS compilation of backend customizable stylesheets and theme assets
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 4.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

Wintercms Winter
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-26T18:51:15.095Z

Reserved: 2026-07-15T22:13:00.720Z

Link: CVE-2026-63179

cve-icon Vulnrichment

Updated: 2026-08-26T18:51:10.276Z

cve-icon NVD

Status : Received

Published: 2026-08-26T19:16:51.840

Modified: 2026-08-26T20:17:56.483

Link: CVE-2026-63179

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-26T20:15:03Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')