# CVE-2026-108691: mall4j improper authorization in cart deletion

Source: https://junglewise.ai/threats/cve-2026-108691-mall4j-through-4-0-contains-an-improper-authorization  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-11. Updated: 2026-10-16  
License: CC BY 4.0 with a link back

CVE-2026-108691 · Severity: medium · CVSS 5.4 · Published 2026-10-11

mall4j is an e-commerce platform that manages customer shopping carts. An authenticated customer can delete other shoppers' cart items by exploiting a SQL logic error, causing all customers' off-shelf product entries to be removed from their carts without authorization. This allows one shopper to sabotage the shopping experience of all other users on the platform.

Technologies: [Gz-Yami Mall4j](https://junglewise.ai/threats/technologies/mall4j). Vendors: [Gz-Yami](https://junglewise.ai/threats/vendors/gz-yami).

## Quick answers

**Is CVE-2026-108691 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-108691 being exploited in the wild.

**How severe is CVE-2026-108691?** Medium severity, with a CVSS score of 5.4, published 11 October 2026.

**Which products and versions are affected?** Gz-Yami Mall4j through 4.0.

**Is there a fix for CVE-2026-108691?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-108691 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-108691?** Check whether you run Gz-Yami Mall4j 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.

## Technical details

An operator precedence error in the cleanExpiryProdList SQL query allows the WHERE clause to match any user's cart row when a product is off-shelf, rather than only the authenticated caller's expired items. The vulnerable query uses OR with AND in improper order: `tp.status = 0 OR ts.status = 0 AND tb.user_id = ?` evaluates as `tp.status = 0 OR (ts.status = 0 AND tb.user_id = ?)`, so any row with an off-shelf product matches regardless of user_id. A single DELETE request to /p/shopCart/cleanExpiryProdList removes cart entries across all users.

## Affected products

- gz-yami mall4j through 4.0

## Timeline

- 2026-10-11: disclosed

## References

- [https://github.com/AnkesKasty/cve-request-poc/blob/a7b6d1423555812d8efa26c91c5d0683164b31e5/mall4j/poc_shopcart_clean_expiry_prodlist.py](https://github.com/AnkesKasty/cve-request-poc/blob/a7b6d1423555812d8efa26c91c5d0683164b31e5/mall4j/poc_shopcart_clean_expiry_prodlist.py)
- [https://github.com/gz-yami/mall4j/blob/ffc672fc1aa4320ce02d0b93853bb456ae0a4dae/yami-shop-api/src/main/java/com/yami/shop/api/controller/ShopCartController.java](https://github.com/gz-yami/mall4j/blob/ffc672fc1aa4320ce02d0b93853bb456ae0a4dae/yami-shop-api/src/main/java/com/yami/shop/api/controller/ShopCartController.java)

## Related threats

- [mall4j information disclosure via cart endpoint SQL injection](https://junglewise.ai/threats/cve-2026-108690-mall4j-through-4-0-contains-an-information-disclosure)
- [mall4j insufficient session expiration in token refresh](https://junglewise.ai/threats/cve-2026-102367-mall4j-through-4-0-contains-an-insufficient-session-expiration)
- [mall4j authorization bypass in UserAddrController endpoints](https://junglewise.ai/threats/cve-2026-102365-mall4j-through-4-0-fails-to-enforce-authorization-checks-on-get)
- [mall4j session privilege escalation via sysType field](https://junglewise.ai/threats/cve-2026-102364-mall4j-through-4-0-fails-to-validate-the-systype-field-in-sa)
- [mall4j product review deletion auth bypass in ProdCommController](https://junglewise.ai/threats/cve-2026-102362-mall4j-through-4-0-fails-to-implement-authentication-controls-on)
