What’s Vulnerable › Vulnerabilities
CVE-2026-31821: Sylius is Missing Authorization in API v2 Add Item Endpoint
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-03-10 · updated 2026-06-17
- Weakness: CWE-862
Description
Sylius is an Open Source eCommerce Framework on Symfony. The POST /api/v2/shop/orders/{tokenValue}/items endpoint does not verify cart ownership. An unauthenticated attacker can add items to other registered customers' carts by knowing the cart tokenValue. An attacker who obtains a cart tokenValue can add arbitrary items to another customer's cart. The endpoint returns the full cart representation in the response (HTTP 201). The issue is fixed in versions: 2.0.16, 2.1.12, 2.2.3 and above.
Affected products
- Sylius: from 2.0.0 before 2.0.16; from 2.1.0 before 2.1.12; from 2.2.0 before 2.2.3 — fixed in 2.0.16, 2.1.12, 2.2.3
How to fix
Upgrade to a fixed version: Sylius 2.0.16, 2.1.12, 2.2.3. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-31821 or the next vulnerability affects your stack