CVE-2026-31821 in Sylius
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 ...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Sylius | Sylius | ≥ 2.0.0, < 2.0.16 ≥ 2.1.0, < 2.1.12 ≥ 2.2.0, < 2.2.3 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-31821 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-274376-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| Published | 2026-03-10 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-862: Missing Authorization
Software does not check whether an authenticated actor has permission for the requested operation.
Related attack patterns (CAPEC)
CAPEC-665 Exploitation of Thunderbolt Protection Flaws via CWE-862
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
An unauthenticated attacker can add items to other registered customers' carts in Sylius eCommerce Framework by exploiting a lack of cart ownership verification in the POST /api/v2/shop/orders/{tokenValue}/items endpoint.
The vulnerability lies in the POST /api/v2/shop/orders/{tokenValue}/items endpoint, which does not verify that the cart tokenValue belongs to the authenticated user. An attacker can use a known cart tokenValue to add items to another customer's cart without proper authorization.
Questions
What is CVE-2026-31821?
An unauthenticated attacker can add items to other registered customers' carts in Sylius eCommerce Framework by exploiting a lack of cart ownership verification in the POST /api/v2/shop/orders/{tokenValue}/items endpoint.
What is the CVSS score for CVE-2026-31821?
CVE-2026-31821 has CVSS 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N. EPSS: 0.4%.
Is CVE-2026-31821 actively exploited?
No confirmed active exploitation of CVE-2026-31821 as of 2026-09-25.
How do I remediate CVE-2026-31821?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2026-31821?
CVE-2026-31821 affects Sylius Sylius.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Sylius","product":"Sylius","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.