Quick answers
- Is CVE-2026-56831 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-56831 being exploited in the wild.
- How severe is CVE-2026-56831?
- Medium severity, with a CVSS score of 6.5, published 15 September 2026.
- Which products and versions are affected?
- shopper/framework (Packagist) < 2.9.0, ECOSYSTEM:introduced=0,fixed=2.9.0.
- Is there a fix for CVE-2026-56831?
- Yes. shopper/framework (Packagist): upgrade to 2.9.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-56831 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-56831?
- Check whether you run shopper/framework (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- shopper/framework (Packagist): upgrade to 2.9.0 or later
composer require shopper/framework:^2.9.0
Technical details
The vulnerability is a business logic flaw stemming from improper input validation (CWE-20). The DiscountCalculator.php component accepts any numeric discount value without enforcing the logical constraint that discounts must be positive. Negative values are persisted to the sh_discounts table and propagate through Calculate.php where they are subtracted from the subtotal. Because the code performs subtraction (subtotal - discountTotal), a negative discount results in subtraction of a negative number, effectively adding the absolute value back to the order total. For example, with subtotal 10000 and discountTotal -5000, the calculation becomes 10000 - (-5000) = 15000. Administrative privilege is required to exploit this, as the discount creation interface is restricted to authenticated administrators. The vulnerability was patched in version 2.9.0 with server-side validation enforcing positive discount values.
Affected products
- Shopper Labs Shopper Framework < 2.9.0
Identifiers
- CVE-2026-56831
- GHSA-5vf4-452p-jjhf
Timeline
- 2026-06-22: disclosed: Vulnerability published to GitHub Advisory Database
- 2026-09-11: patched: Fix released in version 2.9.0