CVE-2026-31822 Details
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.
A cross-site scripting (XSS) vulnerability has been identified in the Sylius eCommerce framework, specifically within the shop checkout login form managed by the ApiLoginController Stimulus controller. This issue affects Sylius versions 2.0.0 prior to 2.0.16, 2.1.0 prior to 2.1.12, and 2.2.0 prior to 2.2.3. The vulnerability arises when a login attempt fails, as the AuthenticationFailureHandler returns a JSON response. The message field of this response is rendered into the DOM using innerHTML, which allows any HTML or JavaScript contained in that value to be executed by the browser. While the default message value is not directly user-controlled, the vulnerability can be exploited under certain conditions, such as customized authentication handlers, translation injection, man-in-the-middle attacks, or server-side injection. Exploitation could lead to session hijacking, credential theft, manipulation of carts or orders, or phishing within the trusted shop domain.
Users can update to Sylius versions 2.0.16, 2.1.12, or 2.2.3 and above. Alternatively, the vulnerable JavaScript controller can be overridden at the project level by copying the original controller, applying a patch to render the response message as text instead of HTML, and registering the patched controller.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Sylius/Sylius/security/advisories/GHSA-vgh8-c6fp-7gcg | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| sylius sylius | >= 2.0.0, < 2.0.16 >= 2.1.0, < 2.1.12 >= 2.2.0, < 2.2.3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 11, 2026 | Initial Analysis | [email protected] |
| Mar 10, 2026 | New CVE Received | [email protected] |