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

CVE-2026-32639: Winter: Broken access control in `Cms\Controllers\Index` allows cross-template actions and unauthorized asset uploads

August 12, 2026

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.manage_pages, cms.manage_partials, cms.manage_layouts, cms.manage_content, cms.manage_assets) 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.manage_pages) 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.manage_assets 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.manage_pages
  • cms.manage_partials
  • cms.manage_layouts
  • cms.manage_content
  • cms.manage_assets

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.manage_content to only be able to edit content files through the Theme Editor) to update immediately.

References

  • github.com/advisories/GHSA-5c4f-9pq9-6c77
  • github.com/wintercms/winter/releases/tag/v1.2.13
  • github.com/wintercms/winter/security/advisories/GHSA-5c4f-9pq9-6c77
  • nvd.nist.gov/vuln/detail/CVE-2026-32639

Code Behaviors & Features

Detect and mitigate CVE-2026-32639 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 6.8 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-280: Improper Handling of Insufficient Permissions or Privileges

Source file

packagist/winter/wn-cms-module/CVE-2026-32639.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Thu, 13 Aug 2026 12:23:43 +0000.