CSRF Vulnerability in Craft CMS Affects Content Preview Functionality
CVE-2026-29113
What is CVE-2026-29113?
Craft CMS has a vulnerability associated with its preview token endpoint that allows attackers to leverage a Cross-Site Request Forgery (CSRF) flaw. Specifically, previous versions before 4.17.4 and 5.9.7 fail to enforce CSRF protection on the /actions/preview/create-token endpoint. This oversight permits a malicious actor to trick a logged-in editor into generating a preview token of their choice. Consequently, the attacker can access unpublished or preview content without requiring authentication, thereby compromising the security and confidentiality of the victim's content. It is crucial for users of Craft CMS to update to the latest versions to mitigate this risk.
Affected Version(s)
cms >= 4.0.0-RC1, < 4.17.3 < 4.0.0-RC1, 4.17.3
cms >= 5.0.0-RC1, < 5.9.6 < 5.0.0-RC1, 5.9.6
