Cross-Site Scripting Vulnerability in Sylius eCommerce Framework
CVE-2026-31822
5.3MEDIUM
What is CVE-2026-31822?
The Sylius eCommerce framework, built on Symfony, has a cross-site scripting (XSS) weakness in the shop checkout login form managed by the ApiLoginController Stimulus controller. Specifically, when a login fails, the AuthenticationFailureHandler generates a JSON response that improperly inserts the message into the DOM using innerHTML. This flaw permits the execution of arbitrary HTML or JavaScript, posing a risk to users' security. The vulnerability has been addressed in versions 2.0.16, 2.1.12, and 2.2.3 and above.
Affected Version(s)
Sylius >= 2.2.0, < 2.2.3 < 2.2.0, 2.2.3
Sylius >= 2.1.0, < 2.1.12 < 2.1.0, 2.1.12
Sylius >= 2.0.0, < 2.0.16 < 2.0.0, 2.0.16
