MediumGHSA-5597-7rmh-97q5
Sylius: Cart FormComponent allows modification or deletion of an already-completed order
Affected versions
2.0.0 to before 2.0.18, 2.1.0 to before 2.1.15, 2.2.0 to before 2.2.6 - fixed in 2.0.18Details
### Impact A user opens the cart page in the browser. In the background, the order gets completed, e.g. an admin changes the status, or the user finalizes payment in another tab. The browser still displays the old cart: the LiveComponent is unaware the underlying order state has changed. If the user then: - **clears the cart** → `clearCart()` calls `manager->remove()` on the completed order: the order is permanently **deleted** from the database; - **removes a product** → `removeItem()` mutates an item on the completed order; - **changes quantity** → `saveCart()` overwrites data on the c
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected