{"answers":{"affected":"4 open source packages ship an affected version, including craftcms/commerce.","exploited":"There is no known exploitation of GHSA-78vr-q6cf-c7p6 in the wild and no public exploit code.","fix":"Upgrade craftcms/commerce to a fixed version for your release line: 4.11.2 or 5.6.5.","what":"GHSA-78vr-q6cf-c7p6 is a vulnerability in craftcms/commerce, published on 19 Jun 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-78vr-q6cf-c7p6 and fix it if it is affected.\n\nWhat it is: GHSA-78vr-q6cf-c7p6 is a vulnerability in craftcms/commerce, published on 19 Jun 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-78vr-q6cf-c7p6 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- craftcms/commerce (Packagist): affected from 4.0.0; fixed in 4.11.2\n- craftcms/commerce (Packagist): affected from 4.0.0; fixed in 4.11.2\n- craftcms/commerce (Packagist): affected from 5.0.0; fixed in 5.6.5\n- craftcms/commerce (Packagist): affected from 5.0.0; fixed in 5.6.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-78vr-q6cf-c7p6/ (Markdown: https://insights.sbomify.com/GHSA-78vr-q6cf-c7p6/index.md)","id":"GHSA-78vr-q6cf-c7p6","markdown":"https://insights.sbomify.com/GHSA-78vr-q6cf-c7p6/index.md","name":"GHSA-78vr-q6cf-c7p6","record":{"aliases":[],"analysis":{"component_type":"cms_plugin","fix_type":"patch","impacts":["data_modify","other"],"network_reachable":"yes","non_default_config":true,"product_category":"Craft Commerce plugin","requires_auth":"low_privilege","summary":"Attackers can submit zero or negative payment amounts to bypass payment validation, potentially obtaining free order fulfillment.","user_interaction":"required","vuln_class":"business_logic"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### 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\u003cimg width=\"690\" height=\"80\" alt=\"image\" src=\"https://github.com/user-attachments/assets/78b653a6-ccae-4ce4-b71b-fc38a7757d73\" /\u003e\n\n\u003cimg width=\"761\" height=\"200\" alt=\"image\" src=\"https://github.com/user-attachments/assets/665a235f-62c2-45fe-aa41-c3f266881c77\" /\u003e\n\n### PoC\n\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n\u003cimg width=\"606\" height=\"144\" alt=\"image\" src=\"https://github.com/user-attachments/assets/a04a6de2-7c5f-4837-aed6-58756e246b80\" /\u003e\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\u003cimg width=\"718\" height=\"98\" alt=\"image\" src=\"https://github.com/user-attachments/assets/aa64b696-9749-45e4-97f6-8d7299cdf1d6\" /\u003e","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Craft Commerce: Partial Payment Amount Without Lower Bound Validation","id":"GHSA-78vr-q6cf-c7p6","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"business_logic","year":"2026"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["4.11.2"],"introduced":["4.0.0"],"last_affected":[],"package":"craftcms/commerce","purl":null,"source":"GHSA-78vr-q6cf-c7p6"},{"ecosystem":"Packagist","fixed":["4.11.2"],"introduced":["4.0.0"],"last_affected":[],"package":"craftcms/commerce","purl":"pkg:composer/craftcms/commerce","source":"GHSA-78vr-q6cf-c7p6"},{"ecosystem":"Packagist","fixed":["5.6.5"],"introduced":["5.0.0"],"last_affected":[],"package":"craftcms/commerce","purl":null,"source":"GHSA-78vr-q6cf-c7p6"},{"ecosystem":"Packagist","fixed":["5.6.5"],"introduced":["5.0.0"],"last_affected":[],"package":"craftcms/commerce","purl":"pkg:composer/craftcms/commerce","source":"GHSA-78vr-q6cf-c7p6"}],"products":null,"published":"2026-06-19","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can submit zero or negative payment amounts to bypass payment validation, potentially obtaining free order fulfillment.","url":"https://insights.sbomify.com/GHSA-78vr-q6cf-c7p6/"}