Vulnerability GHSA-p2ch-c2c3-4xm5

Medium Risk
MEDIUM RISK
CVSS Score: 6.1
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
2 months ago
August 20, 2026 at 06:44 PM UTC
Winter: CSRF through AJAX handler names reachable as backend page actions
v1.0.473 and v1.0.474 and v1.0.475 and v1.1.2 and v1.1.3 and v1.1.4 and v1.1.5 and v1.1.6 and v1.1.7 and v1.1.8 and v1.1.9 and v1.1.10 and v1.1.11 and v1.2.0 and v1.2.1 and v1.2.2 and v1.2.3 and v1.2.4 and v1.2.5 and v1.2.6 and v1.2.7 and v1.2.8 and v1.2.9 and v1.2.10 and v1.2.11 and v1.2.12 and v1.2.13
v1.0.473 and v1.0.474 and v1.0.475 and v1.1.2 and v1.1.3 and v1.1.4 and v1.1.5 and v1.1.6 and v1.1.7 and v1.1.8 and v1.1.9 and v1.1.10 and v1.1.11 and v1.2.0 and v1.2.1 and v1.2.2 and v1.2.3 and v1.2.4 and v1.2.5 and v1.2.6 and v1.2.7 and v1.2.8 and v1.2.9 and v1.2.10 and v1.2.11 and v1.2.12 and v1.2.13

Summary

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

Details

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.

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) for reporting the issue.

For more information

If you have any questions or comments about this advisory:

Related Vulnerabilities

Other vulnerabilities affecting the same packages

Medium Risk
2 months ago
Winter: Reflected XSS through the search query parameter in the backend Table widget
v1.0.473 and v1.0.474 and v1.0.475 and v1.1.2 and v1.1.3 and v1.1.4 and v1.1.5 and v1.1.6 and v1.1.7 and v1.1.8 and v1.1.9 and v1.1.10 and v1.1.11 and v1.2.0 and v1.2.1 and v1.2.2 and v1.2.3 and v1.2.4 and v1.2.5 and v1.2.6 and v1.2.7 and v1.2.8 and v1.2.9 and v1.2.10 and v1.2.11 and v1.2.12 and v1.2.13 GHSA-hq84-x37p-j6q5
v1.0.473 and v1.0.474 and v1.0.475 and v1.1.2 and v1.1.3 and v1.1.4 and v1.1.5 and v1.1.6 and v1.1.7 and v1.1.8 and v1.1.9 and v1.1.10 and v1.1.11 and v1.2.0 and v1.2.1 and v1.2.2 and v1.2.3 and v1.2.4 and v1.2.5 and v1.2.6 and v1.2.7 and v1.2.8 and v1.2.9 and v1.2.10 and v1.2.11 and v1.2.12 and v1.2.13 GHSA-hq84-x37p-j6q5
Medium Risk
2 months ago
Winter: Stored XSS through cached Brand Settings and Editor Settings custom styles
v1.0.473 and v1.0.474 and v1.0.475 and v1.1.2 and v1.1.3 and v1.1.4 and v1.1.5 and v1.1.6 and v1.1.7 and v1.1.8 and v1.1.9 and v1.1.10 and v1.1.11 and v1.2.0 and v1.2.1 and v1.2.2 and v1.2.3 and v1.2.4 and v1.2.5 and v1.2.6 and v1.2.7 and v1.2.8 and v1.2.9 and v1.2.10 and v1.2.11 and v1.2.12 and v1.2.13 GHSA-5cwr-5jxg-pcf6
v1.0.473 and v1.0.474 and v1.0.475 and v1.1.2 and v1.1.3 and v1.1.4 and v1.1.5 and v1.1.6 and v1.1.7 and v1.1.8 and v1.1.9 and v1.1.10 and v1.1.11 and v1.2.0 and v1.2.1 and v1.2.2 and v1.2.3 and v1.2.4 and v1.2.5 and v1.2.6 and v1.2.7 and v1.2.8 and v1.2.9 and v1.2.10 and v1.2.11 and v1.2.12 and v1.2.13 GHSA-5cwr-5jxg-pcf6
High Risk
2 months ago
Winter: ImportExportController AJAX handlers bypass granular import/export permission gate
v1.0.473 and v1.0.474 and v1.0.475 and v1.1.2 and v1.1.3 and v1.1.4 and v1.1.5 and v1.1.6 and v1.1.7 and v1.1.8 and v1.1.9 and v1.1.10 and v1.1.11 and v1.2.0 and v1.2.1 and v1.2.2 and v1.2.3 and v1.2.4 and v1.2.5 and v1.2.6 and v1.2.7 and v1.2.8 and v1.2.9 and v1.2.10 and v1.2.11 and v1.2.12 and v1.2.13 GHSA-fm29-4mq3-phg6
v1.0.473 and v1.0.474 and v1.0.475 and v1.1.2 and v1.1.3 and v1.1.4 and v1.1.5 and v1.1.6 and v1.1.7 and v1.1.8 and v1.1.9 and v1.1.10 and v1.1.11 and v1.2.0 and v1.2.1 and v1.2.2 and v1.2.3 and v1.2.4 and v1.2.5 and v1.2.6 and v1.2.7 and v1.2.8 and v1.2.9 and v1.2.10 and v1.2.11 and v1.2.12 and v1.2.13 GHSA-fm29-4mq3-phg6
Medium Risk
2 months ago
Winter: My Account preview exposes another backend user's profile by record ID
1.2.13 and v1.2.13 GHSA-mpmw-f6h6-3g26
1.2.13 and v1.2.13 GHSA-mpmw-f6h6-3g26
Low Risk
2 months ago
Winter: Stored XSS through Backend List widget image columns
v1.1.2 and v1.1.3 and v1.1.4 and v1.1.5 and v1.1.6 and v1.1.7 and v1.1.8 and v1.1.9 and v1.1.10 and v1.1.11 and v1.2.0 and v1.2.1 and v1.2.2 and v1.2.3 and v1.2.4 and v1.2.5 and v1.2.6 and v1.2.7 and v1.2.8 and v1.2.9 and v1.2.10 and v1.2.11 and v1.2.12 and v1.2.13 GHSA-7mpf-4465-7fc2
v1.1.2 and v1.1.3 and v1.1.4 and v1.1.5 and v1.1.6 and v1.1.7 and v1.1.8 and v1.1.9 and v1.1.10 and v1.1.11 and v1.2.0 and v1.2.1 and v1.2.2 and v1.2.3 and v1.2.4 and v1.2.5 and v1.2.6 and v1.2.7 and v1.2.8 and v1.2.9 and v1.2.10 and v1.2.11 and v1.2.12 and v1.2.13 GHSA-7mpf-4465-7fc2
View all vulnerabilities for these packages

Impacted packages

Timeline

Published
2 months ago
August 20, 2026 at 06:44 PM UTC
Fixed (1.2.14)
2 months ago
August 19, 2026 at 09:55 PM UTC
Last Modified
12 hours ago
November 10, 2026 at 08:15 PM UTC