Intel

AIKIDO-2026-10213

craftcms/commerce is vulnerable to SQL Injection

SQL InjectionGHSA-j3x5-mghf-xvfw Published Feb 21, 2026

87

High 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 SQL injection. In the actionUserOrdersTable function, the sort field is not properly sanitized before being used in a database query. This allows attackers to inject malicious SQL statements, which can lead to unauthorized data access, modification, or deletion.

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 SQL Injection 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.