Intel

AIKIDO-2026-10214

craftcms/commerce is vulnerable to Cross-site Scripting (XSS)

CVE-2026-29177Published Feb 21, 2026
February 21, 2026

36

CVE Score

Low

Cross-site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to cross-site scripting (XSS) in the Order element. In the getMetadata() method of the src/elements/Order.php class, several metadata fields such as reference, couponCode, order site, shipping method, and origin are included in the output without proper HTML encoding. This allows attackers to inject malicious HTML or script content that executes in the user’s browser when the metadata is rendered.

How do I fix this?

Upgrade the craftcms/commerce library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

3.0.0 - 4.10.1

Fixed in 4.10.2

5.0.0 - 5.5.2

Fixed in 5.5.3

Background info

craftcms/commerce is vulnerable to Cross-site Scripting (XSS) in versions 3.0.0 - 4.10.1 and 5.0.0 - 5.5.2.

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