Negative charge in shopping cart in Shopizer
Impact
Using API or Controller based versions negative quantity is not adequately validated hence creating incorrect shopping cart and order total.
Patches
Adding a back-end verification to check that quantity parameter isn't negative. If so, it is set to 1. Patched in 2.11.0
Workarounds
Without uprading, it's possible to just apply the fixes in the same files it's done for the patch. Or you use javax constraint validation on the quantity parameter.
References
Input Validation Using bean validation constraint Commits with fixes CVE Details below : Mitre NVD
Credits
Found and solved by Yannick Gosset from Aix-Marseille University cybersecurity master program supervised by Yassine Ilmi
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | com.shopizer:sm-core-model | < 2.11.0 | 2.11.0 |
References
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N- Weakness (CWE)
CWE-20- Platform
- Java / Kotlin (Maven)
- Package
com.shopizer:sm-core-model- Disclosed
- 22.04.2020
- Updated
- 11.10.2026 12:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-w8rc-pgxq-x2cj - CC BY 4.0
Vulnerability history: com.shopizer:sm-core-model
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.