What’s Vulnerable › Vulnerabilities
CVE-2026-31822: Sylius has a XSS vulnerability in checkout login form
- Severity: medium (CVSS 6.1 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-79
Description
Sylius is an Open Source eCommerce Framework on Symfony. A cross-site scripting (XSS) vulnerability exists in the shop checkout login form handled by the ApiLoginController Stimulus controller. When a login attempt fails, AuthenticationFailureHandler returns a JSON response whose message field is rendered into the DOM using innerHTML, allowing any HTML or JavaScript in that value to be parsed and executed by the browser. 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-31822 or the next vulnerability affects your stack