Intel

AIKIDO-2026-616346

craftcms/cms is vulnerable to Cross-Site Scripting (XSS)

GHSA-2rp4-x2j7-qmccPublished Jul 31, 2026
July 31, 2026

35

CVE Score

Low

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

Craft CMS renders an element's draft name in control-panel chip and card labels without HTML-encoding it, while the surrounding path segments are encoded. A low-privilege author who can create a draft controls the draft name and can store a script payload that runs when another control-panel user is shown that element's chip or card. The payload executes in the victim's authenticated control-panel origin and can read the CSRF token and issue actions as that user, including higher-privileged accounts. The fix HTML-encodes the draft name before output.

How do I fix this?

Upgrade the craftcms/cms library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you grant control-panel access to users who can create element drafts.

Versions

5.0.0 - 5.10.7

Fixed in 5.10.8

Background info

craftcms/cms is vulnerable to Cross-Site Scripting (XSS) in versions 5.0.0 - 5.10.7.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea