Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/commerce
  4. ›
  5. GHSA-78vr-q6cf-c7p6

GHSA-78vr-q6cf-c7p6: Craft Commerce: Partial Payment Amount Without Lower Bound Validation

June 19, 2026

The 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.

References

  • github.com/advisories/GHSA-78vr-q6cf-c7p6
  • github.com/craftcms/commerce/commit/9a88392b3074aa132a9455d4f4b582411df52c74
  • github.com/craftcms/commerce/security/advisories/GHSA-78vr-q6cf-c7p6

Code Behaviors & Features

Detect and mitigate GHSA-78vr-q6cf-c7p6 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 4.0.0 before 4.11.2, all versions starting from 5.0.0 before 5.6.5

Fixed versions

  • 4.11.2
  • 5.6.5

Solution

Upgrade to versions 4.11.2, 5.6.5 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-1284: Improper Validation of Specified Quantity in Input
  • CWE-20: Improper Input Validation

Source file

packagist/craftcms/commerce/GHSA-78vr-q6cf-c7p6.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 23 Jun 2026 12:23:36 +0000.