SQL Injection Affecting craftcms/commerce package, versions >=5.0.0, <5.6.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-CRAFTCMSCOMMERCE-16044108
  • published14 Apr 2026
  • disclosed13 Apr 2026
  • creditNeosprings

Introduced: 13 Apr 2026

NewCVE-2026-32272  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade craftcms/commerce to version 5.6.0 or higher.

Overview

craftcms/commerce is a Craft Commerce

Affected versions of this package are vulnerable to SQL Injection via the hasVariant or hasProduct properties, which bypass input sanitization in subqueries. An attacker can extract arbitrary database contents, including sensitive security keys, by sending crafted input as an authenticated control panel user.

CVSS Base Scores

version 4.0
version 3.1