# GHSA-C2FQ-W6QJ-3HJ4: Arbitrary payment amounts via the orders and payments APIs enable order underpayment

- Database: GitHub
- Severity: CVSS 4.3 (Medium)
- Published: 2026-09-09
- Modified: 2026-09-09

## Affected versions

- solidus (RubyGems): from 4.7.0, fixed in 4.7.1
- solidus (RubyGems): from 4.6.0, fixed in 4.6.3
- solidus (RubyGems): fixed in 4.6

## Description

### Impact
Through two of the API endpoints, it's possible to set the amount on a payment to any value. If stores are configured to do so, this could lead to fulfilling orders without having collected sufficient funds.

### Patches
The fix updates permitted attributes for all endpoints to only allow setting the amount for admins or when it explicitly set in a checkout controller. It is released in Solidus 4.6.3 and 4.7.1. 

### Workarounds
There are a few things that can be done to mitigate this issue should you not be able to update:
- Ensure `Spree::Config[:require_payment_to_ship]` is true to prevent shipping unpaid orders.
- Modify `Spree::PermittedAttributes.payment_attributes` to exclude `:amount`. Doing so will prevent the amount from being set in all endpoints. A subsequent monkey-patch would be required to allow it for `Spree::Api::CheckoutsController` and the storefront `CheckoutsController` because they need to allow the amount parameter through after they explicitly set it.

### Credits
Rasul Rasulzada

## References

- https://github.com/solidusio/solidus/security/advisories/GHSA-c2fq-w6qj-3hj4

Page: https://cve.now/GHSA-C2FQ-W6QJ-3HJ4

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
