Cross-site Request Forgery (CSRF) Affecting craftcms/cms package, versions >=4.0.0-RC1, <4.17.3>=5.0.0-RC1, <5.9.6


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-CRAFTCMSCMS-15460348
  • published11 Mar 2026
  • disclosed10 Mar 2026
  • creditsingetu0096

Introduced: 10 Mar 2026

NewCVE-2026-29113  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade craftcms/cms to version 4.17.3, 5.9.6 or higher.

Overview

craftcms/cms is a content management system.

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via the create-token process. An attacker can gain unauthorized access to previewed or unpublished content by tricking a logged-in user with active preview authorization into minting a preview token chosen by the attacker through a crafted link or redirect. This is only exploitable if the victim is logged in, has active preview authorization for the target content, and the attacker knows the target's canonical ID and public URL path.

References

CVSS Base Scores

version 4.0
version 3.1