CVE-2026-56831: Shopper Framework negative discount validation bypass

CVE-2026-56831 · Severity: medium · CVSS 6.5 · Published 2026-09-15

Shopper Framework is a headless e-commerce management system that handles administrative discount creation and order calculation. The system accepts negative discount values through the admin interface without validation, allowing attackers with admin privileges to create discounts with large negative amounts (e.g., -$99,999,999). These malformed discounts propagate through the pricing pipeline and cause incorrect order totals by inverting the discount effect, resulting in inflated order amounts rather than discounts.

Technologies: shopper/framework (Packagist). Vendors: Packagist.

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

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.