---
id: "CVE-2026-125339"
page: "https://infrastack.ai/live/CVE-2026-125339"
kind: "vulnerability"
aliases: ["CVE-2026-125339", "GHSA-p2ch-c2c3-4xm5"]
title: "Winter: CSRF through AJAX handler names reachable as backend page actions"
severity: "medium"
cvss: 6.1
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "winter/wn-backend-module", "fixed": ["1.2.14"], "affected": ">= 1.0.319, < 1.2.14", "ecosystem": "composer"}]
ecosystems: ["composer"]
tags: ["cwe-352", "package", "php", "self-hosted", "winter-cms", "wn-backend-module"]
not_affected_if: ["no-backend-users-with-permissions", "version-outside-range"]
published_at: "2026-08-20T18:44:59+00:00"
first_seen_at: "2026-11-10T20:10:42+00:00"
updated_at: "2026-11-10T20:12:36+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-p2ch-c2c3-4xm5", "first_seen_at": "2026-11-10T20:10:42+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125339", "first_seen_at": "2026-11-10T20:46:04+00:00"}]
exploit_sources: []
---

# Winter: CSRF through AJAX handler names reachable as backend page actions

Link for people: https://infrastack.ai/live/CVE-2026-125339 (this .md is for agents)

Winter CMS backend AJAX handler names were reachable as page actions through a plain GET request without a CSRF token. A logged-in backend user who follows an attacker's link can have actions run for them, such as truncating the system event log or deleting CMS templates.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- composer:winter/wn-backend-module affected >= 1.0.319, < 1.2.14 fixed 1.2.14

## How to check

- Check the installed `winter/wn-backend-module` version in `composer.lock` or with `composer show winter/wn-backend-module`; affected versions are `>= 1.0.319` and `< 1.2.14`.
- Confirm whether `SameSite` is set for the session cookie in `config/session.php`.

## Fix

- `winter/wn-backend-module`: upgrade to `1.2.14`.
- Plugins with camelCase page action methods must rename them to lowercase snake_case as described in the advisory's breaking change note.

## Timeline

- 2026-11-10T20:10:42+00:00 ghsa https://github.com/advisories/GHSA-p2ch-c2c3-4xm5
- 2026-11-10T20:46:04+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-125339

## Documents

- [advisory] Maintainer's advisory: api.github.com https://api.github.com/repos/wintercms/winter/security-advisories/GHSA-p2ch-c2c3-4xm5
- [advisory] Maintainer's advisory: github.com https://github.com/wintercms/winter/security/advisories/GHSA-p2ch-c2c3-4xm5
- [fix] Patch: github.com https://github.com/wintercms/winter/commit/353b23804dee2acf49fca996c72637040446824f
- [fix] Release: github.com https://github.com/wintercms/winter/releases/tag/v1.2.14

## From the sources

### Impact

Affected versions of Winter CMS allow a backend AJAX handler to be invoked by a plain top-level `GET` navigation with no CSRF token. `Backend\Classes\Controller::actionExists()` accepted any public method on a controller as a page action, so handler-shaped names were never reserved from URL dispatch: an authenticated and authorized request to `/backend/system/eventlogs/index_onEmptyLog` reached the handler of the same name and truncated the system event log. Backend paths are routed through `Route::any`, and CSRF validation is skipped for `HEAD`, `GET` and `OPTIONS` requests.

The default `SameSite=Lax` session cookie is sent on top-level cross-site navigation, so a link on an attacker-controlled page is sufficient — no form, no script and no token. Handler arguments are taken from URL path segments, so the attacker also chooses the target record. Affected handlers across the `backend`, `cms` and `system` modules cover log truncation, resetting settings to their defaults, altering backend user state, and deleting CMS templates. None of them disclose data to the attacker or write attacker-controlled content, so the impact is destructive and state-changing rather than confidential.

To actively exploit this issue, an attacker would need no account of their own, but would need an authenticated backend user holding the relevant permission to follow an attacker-supplied link. The permissions guarding the affected handlers, `system.access_logs` included, are by default assigned only to the built-in Developer role.

### Patches

Page-action dispatch is now restricted to all-lowercase method names, which reserves handler-shaped names (`onFoo`, `index_onFoo`) from being reached by URL. AJAX dispatch is unchanged: handlers continue to work over `POST` with the `X-WINTER-REQUEST-HANDLER` header exactly as before, and need no changes.

>**IMPORTANT:** **This fix includes a breaking change to backend action routing.** A public controller method used as a page action must now be named in lowercase — `coming_soon()` rather than `comingSoon()` — and dashed URLs are normalised to `snake_case`, so `/coming-soon` now resolves to `coming_soon()` instead of `comingSoon()`. Plugins with a camelCase page action should rename the method and its view file to match; the published URL does not need to change. Core is unaffected, and a survey of the plugin ecosystem found the change affects only a small number of plugins.

This security issue has been fixed in [v1.2.14](https://github.com/wintercms/winter/commit/353b23804dee2acf49fca996c72637040446824f).

### Workarounds

If you cannot upgrade, apply https://github.com/wintercms/winter/commit/353b23804dee2acf49fca996c72637040446824f manually.

As an interim mitigation, set `'same_site' => 'strict'` in `config/session.php`. A strict session cookie is not sent on cross-site top-level navigation, which prevents the victim's session accompanying an attacker's link. Review this against any single sign-on or inbound-link flows into your backend first, as it also affects legitimate cross-site entry.

### References

Credit to Awwader ([@NRAwwad](https://github.com/NRAwwad)) for reporting the issue.

### For more information

If you have any questions or comments about this advisory:
- Email us at [hello@wintercms.com](mailto:hello@wintercms.com)

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
