Skip to content
OpenAdvisories
High · 8.7 CVE-2026-29174 EUVD-2026-10816GHSA-pmgj-gmm4-jh6j

Craft Commerce has a SQL Injection in Commerce Inventory Table Sorting

Published Mar 10, 2026 · Updated Mar 10, 2026 · Assigned by GitHub_M

Description

Craft Commerce is an ecommerce platform for Craft CMS. Prior to 5.5.3, Craft Commerce is vulnerable to SQL Injection in the inventory levels table data endpoint. The sort[0][direction] and sort[0][sortField] parameters are concatenated directly into an addOrderBy() clause without any validation or sanitization. An authenticated attacker with access to the Commerce Inventory section can inject arbitrary SQL queries, potentially leading to a full database compromise. This vulnerability is fixed in 5.5.3.

Affected products

VendorProductAffectedFixed
craftcms commerce >= 5.0.0 < 5.5.3 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist craftcms/commerce >= 5.0.0, < 5.5.3 5.5.3 GHSA-pmgj-gmm4-jh6j

References