Vulnerability · Published Mar 10, 2026 · Assigned by GitHub_M
CVE-2026-31821Sylius is Missing Authorization in API v2 Add Item Endpoint
Medium 6.9
In plain English
A medium-severity missing authorization in Sylius from Sylius. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | sylius/sylius | 2.0.16 | GHSA-wjmg-4cq5-m8hg |
| Packagist | sylius/sylius | 2.1.12 | GHSA-wjmg-4cq5-m8hg |
| Packagist | sylius/sylius | 2.2.3 | GHSA-wjmg-4cq5-m8hg |
Affected products (as reported)
Weakness: CWE-862 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/Sylius/Sylius/security/advisories/GHSA-wjmg-4cq5-m8hg x_refsource_CONFIRM