{"answers":{"affected":"2 open source packages ship an affected version, including shopper/framework.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-56831 exists.","fix":"Upgrade shopper/framework to 2.9.0 or later.","what":"CVE-2026-56831 is a medium-severity vulnerability in shopperlabs shopper, published on 15 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-56831 and fix it if it is affected.\n\nWhat it is: CVE-2026-56831 is a medium-severity vulnerability in shopperlabs shopper, published on 15 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-56831 exists.\n\nAffected packages and fixed versions:\n- shopper/framework (Packagist): affected all versions; fixed in 2.9.0\n- shopper/framework (Packagist): affected all versions; fixed in 2.9.0\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/CVE-2026-56831/ (Markdown: https://insights.sbomify.com/CVE-2026-56831/index.md)","id":"CVE-2026-56831","markdown":"https://insights.sbomify.com/CVE-2026-56831/index.md","name":"CVE-2026-56831","record":{"aliases":["GHSA-5vf4-452p-jjhf"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Headless e-commerce admin","requires_auth":"low_privilege","summary":"Administrators can create negative discounts that incorrectly increase order totals, compromising financial data integrity in the Shopper e-commerce platform.","user_interaction":"not_required","vuln_class":"business_logic"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Shopper: Negative discount values accepted and propagated through order calculation pipeline","id":"CVE-2026-56831","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"business_logic","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"PraisonAI DiscordApproval accepts unrelated channel messages as dangerous-tool approvals","id":"CVE-2026-56832"},"packages":[{"ecosystem":"Packagist","fixed":["2.9.0"],"introduced":["0"],"last_affected":[],"package":"shopper/framework","purl":null,"source":"GHSA-5vf4-452p-jjhf"},{"ecosystem":"Packagist","fixed":["2.9.0"],"introduced":["0"],"last_affected":[],"package":"shopper/framework","purl":"pkg:composer/shopper/framework","source":"GHSA-5vf4-452p-jjhf"}],"prev":{"headline":"Shopper: Incomplete fix for GHSA-h4mp-g9c6-xwph: Media sub-form store() still lacks authorization","id":"CVE-2026-56830"},"products":["shopper"],"published":"2026-09-15","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-16","vendors":["shopperlabs"]},"summary":"Administrators can create negative discounts that incorrectly increase order totals, compromising financial data integrity in the Shopper e-commerce platform.","url":"https://insights.sbomify.com/CVE-2026-56831/"}