GHSA-5c4f-9pq9-6c77: Medium severity composer/winter/wn-cms-module vulnerability

Published Aug 12, 2026
·
Updated

Impact

Affected versions of Winter CMS did not enforce per-template-type permission checks in the CMS section's AJAX handlers. The CMS controller (Cms\Controllers\Index) used OR-logic across its five permissions (cms.managepages, cms.managepartials, cms.managelayouts, cms.managecontent, cms.manageassets) to control access to the section as a whole, but individual handlers such as onSave(), onDelete(), and onDeleteTemplates() did not verify that the authenticated user holds the specific permission corresponding to the requested template type.

This allowed a backend user with any single Theme Editor permission (e.g. cms.managepages) to craft AJAX requests targeting template types outside their authorized scope — for example, deleting layouts, modifying partials, or reading content files.

In addition, the AssetList widget was registered for all users who passed the controller gate regardless of whether they held the cms.manageassets permission, and its onUpload() handler was missing the validateRequestTheme() call that is present on all other mutating handlers in the same widget. This allowed unauthorized file uploads into the active theme's asset directory.

To actively exploit this security issue, an attacker would need access to the Backend with a user account with any of the following permissions:

- cms.managepages - cms.managepartials - cms.managelayouts - cms.managecontent - cms.manageassets

The Winter CMS maintainers strongly recommend that all Winter CMS sites that rely on granular CMS permission assignments (specifically users with only access to cms.managecontent to only be able to edit content files through the Theme Editor) to update immediately.

Patches

Per-template-type permission checks are now enforced on all Theme Editor AJAX handlers, the AssetList widget is only registered for users with the cms.manageassets permission, and onUpload() now includes theme validation consistent with the other mutating handlers.

This security issue has been fixed as of v1.2.13.

Workarounds

If users cannot upgrade, they may apply the following changes to their Winter CMS installation manually to resolve this issue:

1. In modules/cms/controllers/Index.php, wrap each widget registration in the constructor with the corresponding hasAccess() check, and add a validateRequestType() call to the indexonOpenTemplate(), onSave(), onCreateTemplate(), onDeleteTemplates(), onDelete(), onCommit(), and onReset() handlers that verifies the user holds the permission for the requested template type. 2. In modules/cms/widgets/AssetList.php, add a $this->validateRequestTheme() call at the top of the onUpload() method.

Affected Software

1 affected componentFixes available
composer/winter/wn-cms-module<=1.2.12
1.2.13

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/winter/wn-cms-module to a version that resolves this vulnerability.

    Fixed in 1.2.13
  2. Upgrade

    Upgrade Winter CMS to a version that resolves this vulnerability.

    Fixed in v1.2.13
  3. Configuration

    In `modules/cms/controllers/Index.php`, wrap each widget registration in the constructor with the corresponding `hasAccess()` check; and add `validateRequestType()` to the `index_onOpenTemplate()`, `onSave()`, `onCreateTemplate()`, `onDeleteTemplates()`, `onDelete()`, `onCommit()`, and `onReset()` handlers to verify the authenticated user holds the permission for the requested template type.

    Winter CMS (CMS controller) modules/cms/controllers/Index.php = N/A
  4. Configuration

    In `modules/cms/widgets/AssetList.php`, add a `$this->validateRequestTheme()` call at the top of the `onUpload()` method so uploads are validated consistent with other mutating handlers.

    Winter CMS (AssetList widget) modules/cms/widgets/AssetList.php :: onUpload() = N/A
  5. Configuration

    Ensure the `AssetList` widget is only registered for users with the `cms.manage_assets` permission (not for all users that pass the CMS section gate).

    Winter CMS (CMS controller widget registration) AssetList widget registration gate = N/A

Event History

Aug 12, 2026
Advisory Published
via GitHub·03:14 PM
Data Sourced
via GitHub·03:14 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of GHSA-5c4f-9pq9-6c77?

The severity of GHSA-5c4f-9pq9-6c77 is medium with a score of 6.8.

2

How do I fix GHSA-5c4f-9pq9-6c77?

To fix GHSA-5c4f-9pq9-6c77, upgrade to the version of Winter CMS where the vulnerability has been patched.

3

What impact does GHSA-5c4f-9pq9-6c77 have on my application?

GHSA-5c4f-9pq9-6c77 allows unauthorized access to CMS features due to insufficient permission checks.

4

Which versions of Winter CMS are affected by GHSA-5c4f-9pq9-6c77?

GHSA-5c4f-9pq9-6c77 affects previous versions of Winter CMS that do not enforce per-template-type permission checks.

5

Who is affected by the GHSA-5c4f-9pq9-6c77 vulnerability?

Users of the affected versions of Winter CMS who rely on CMS section AJAX handlers for managing content are affected by GHSA-5c4f-9pq9-6c77.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203