Intel

AIKIDO-2026-10214

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

Cross-site Scripting (XSS)GHSA-mj32-r678-7mvp Published Feb 21, 2026

36

Low Risk

This Affects:

PHPcraftcms/commerce
3.0.0 - 4.10.1
Fixed in 4.10.2
5.0.0 - 5.5.2
Fixed in 5.5.3
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.

Who does this affect?

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

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.

How to fix this

Upgrade the craftcms/commerce library to the patch version.