GHSA-78vr-q6cf-c7p6: Craft Commerce Partial Payment Amount Without Lower Vulnerability
MODERATEGHSA-78vr-q6cf-c7p6 is a MODERATE partial payment amount without lower vulnerability (CWE-1284: Improper Validation of Specified Quantity in Input) affecting Craft Commerce libraries in the Packagist ecosystem. The issue involves partial payment amount without lower bound validation. Remediation is available by upgrading affected packages to version 5.6.5, 4.11.2.
GHSA-78vr-q6cf-c7p6 at a Glance
How to Fix GHSA-78vr-q6cf-c7p6
To remediate this vulnerability, upgrade all affected Craft Commerce dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade craftcms/commerce to 5.6.5
Upgrade craftcms/commerce to 4.11.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for craftcms/commerce
How to Check if You Are Affected
To determine whether your application is affected by GHSA-78vr-q6cf-c7p6, inspect your project dependencies for Craft Commerce:
inspect dependencies for craftcms/commerce
Analyze the terminal output to locate any version of Craft Commerce in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.6.5), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1284: Improper Validation of Specified Quantity in Input, where the product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties. In Craft Commerce, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-78vr-q6cf-c7p6 Affected Craft Commerce Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
craftcms/commerce
|
Packagist |
≥ 5.0.0
< 5.6.5
|
5.6.5
|
|
craftcms/commerce
|
Packagist |
≥ 4.0.0
< 4.11.2
|
4.11.2
|
References
Frequently Asked Questions
What is GHSA-78vr-q6cf-c7p6?
Which Craft Commerce versions are affected?
What version fixes GHSA-78vr-q6cf-c7p6?
Is craftcms/commerce affected?
What CWE is associated with GHSA-78vr-q6cf-c7p6?
How can I check Packagist dependencies for GHSA-78vr-q6cf-c7p6?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-78vr-q6cf-c7p6",
"modified" : "2026-06-19T21:15:23Z",
"published" : "2026-06-19T21:15:23Z",
"aliases" : [ ],
"summary" : "Craft Commerce: Partial Payment Amount Without Lower Bound Validation",
"details" : "### Summary\n\nThe `Order::setPaymentAmount()` method accepts any float value without enforcing a minimum positive amount. The PaymentsController casts the user-supplied 'paymentAmount' parameter directly to float with no lower-bound check. \n\n### Details\n\nWhen the store has 'Allow Partial Payment on Checkout' enabled, a user can submit a payment amount of $0.00 or even a negative value, potentially marking orders as paid without a valid transaction.\n\n<img width=\"690\" height=\"80\" alt=\"image\" src=\"https://github.com/user-attachments/assets/78b653a6-ccae-4ce4-b71b-fc38a7757d73\" />\n\n<img width=\"761\" height=\"200\" alt=\"image\" src=\"https://github.com/user-attachments/assets/665a235f-62c2-45fe-aa41-c3f266881c77\" />\n\n### PoC\n\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n<img width=\"606\" height=\"144\" alt=\"image\" src=\"https://github.com/user-attachments/assets/a04a6de2-7c5f-4837-aed6-58756e246b80\" />\n\n\n### Impact\nOn stores with partial payment enabled, a customer may be able to set an arbitrarily small payment amount. Gateway behavior varies — some will process $0.00 transactions, effectively giving free order fulfillment.\n\n**Remediation**\n\n<img width=\"718\" height=\"98\" alt=\"image\" src=\"https://github.com/user-attachments/assets/aa64b696-9749-45e4-97f6-8d7299cdf1d6\" />",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "craftcms/commerce"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0"
}, {
"fixed" : "5.6.5"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.6.4"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "craftcms/commerce"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.11.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.11.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/craftcms/commerce/security/advisories/GHSA-78vr-q6cf-c7p6"
}, {
"type" : "WEB",
"url" : "https://github.com/craftcms/commerce/commit/9a88392b3074aa132a9455d4f4b582411df52c74"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/craftcms/commerce"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1284", "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-19T21:15:23Z",
"nvd_published_at" : null
}
}