# CVE-2026-56831: Shopper: Negative discount values accepted and propagated through order calculation pipeline

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-11T21:28:00.000Z
- Modified: 2026-09-30T17:51:56.193Z
- Also known as: GHSA-5vf4-452p-jjhf
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Shopper is a Headless e-commerce Admin Panel. Prior to 2.9.0, the /cpanel/discounts administrative interface accepts negative fixed_amount discount values, persists them in sh_discounts, and passes them through vendor/shopper/cart/src/Discounts/DiscountCalculator.php and vendor/shopper/cart/src/Pipelines/Calculate.php without enforcing a positive-value invariant. Because the calculation subtracts discountTotal from the subtotal, a negative discount increases the resulting order total instead of reducing it. Malformed discount records can therefore cause incorrect pricing and financial data integrity failures, although the advisory does not establish a customer-facing exploitation path. This issue is fixed in version 2.9.0.

(As written by CVE List.)

## Affected

- shopperlabs shopper: < 2.9.0
- shopper/framework (Packagist): before 2.9.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/shopperlabs/shopper/security/advisories/GHSA-5vf4-452p-jjhf> (exploit, web)
- <https://github.com/shopperlabs/shopper/pull/528>
- <https://github.com/shopperlabs/shopper/commit/967e616281ded1a0050d9102858ecd7dd7f66a41>
- <https://github.com/shopperlabs/shopper/releases/tag/v2.9.0>
- <https://github.com/shopperlabs/shopper> (package)

## Sources

- CVE List: [CVE-2026-56831](https://www.cve.org/CVERecord?id=CVE-2026-56831), CVE Terms of Use, modified 2026-09-16
- GitHub Advisory Database: [GHSA-5vf4-452p-jjhf](https://github.com/advisories/GHSA-5vf4-452p-jjhf), CC-BY-4.0, modified 2026-09-11
- NVD: [CVE-2026-56831](https://nvd.nist.gov/vuln/detail/CVE-2026-56831), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-56831 · Whole record: https://cve.day/CVE-2026-56831.json · Rebuilt by cve.day 2026-11-25T22:59:38.624Z
