Cross-site scripting in Sylius - CVE-2026-31822
Published: April 27, 2026
Sylius
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary script in the victim's browser.
The vulnerability exists due to cross-site scripting in the ApiLoginController Stimulus controller when rendering the authentication failure message into the DOM using innerHTML. A remote attacker can cause malicious HTML or JavaScript to be included in the message field to execute arbitrary script in the victim's browser.
The issue affects the default shop checkout login form, and exploitation may depend on customized authentication handlers, untrusted translation sources, intercepted responses, or modified JSON response bodies.