# CVE-2026-31821: Sylius is Missing Authorization in API v2 Add Item Endpoint

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-03-10T21:25:20.368Z
- Modified: 2026-06-17T10:34:31.280Z
- Also known as: GHSA-wjmg-4cq5-m8hg
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Sylius Sylius: >= 2.2.0, < 2.2.3; >= 2.1.0, < 2.1.12; >= 2.0.0, < 2.0.16; from 2.0.0 before 2.0.16; from 2.1.0 before 2.1.12; from 2.2.0 before 2.2.3
- sylius/sylius (Packagist): from 2.0.0 before 2.0.16; from 2.1.0 before 2.1.12; from 2.2.0 before 2.2.3

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/Sylius/Sylius/security/advisories/GHSA-wjmg-4cq5-m8hg> (mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31821> (advisory)
- <https://github.com/Sylius/Sylius> (package)

## Sources

- CVE List: [CVE-2026-31821](https://www.cve.org/CVERecord?id=CVE-2026-31821), CVE Terms of Use, modified 2026-03-11
- GitHub Advisory Database: [GHSA-wjmg-4cq5-m8hg](https://github.com/advisories/GHSA-wjmg-4cq5-m8hg), CC-BY-4.0, modified 2026-03-13
- NVD: [CVE-2026-31821](https://nvd.nist.gov/vuln/detail/CVE-2026-31821), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-31821 · Whole record: https://cve.day/CVE-2026-31821.json · Rebuilt by cve.day 2026-11-25T22:59:15.675Z
