Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/commerce
  4. ›
  5. CVE-2026-29174

CVE-2026-29174: Craft Commerce is vulnerable to SQL Injection in Commerce Inventory Table Sorting

March 10, 2026

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.


References

  • github.com/advisories/GHSA-pmgj-gmm4-jh6j
  • github.com/craftcms/commerce
  • github.com/craftcms/commerce/commit/094d69df24b925544f337c38e2ec1effcd5395c7
  • github.com/craftcms/commerce/commit/a2ea853935ef03297ea1298bdb0d8c55ec5daf7b
  • github.com/craftcms/commerce/security/advisories/GHSA-pmgj-gmm4-jh6j
  • nvd.nist.gov/vuln/detail/CVE-2026-29174

Code Behaviors & Features

Detect and mitigate CVE-2026-29174 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.0.0 before 5.5.3

Fixed versions

  • 5.5.3

Solution

Upgrade to version 5.5.3 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

packagist/craftcms/commerce/CVE-2026-29174.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 25 Mar 2026 00:18:25 +0000.