CVE-2026-31822
Received Received - Intake
Cross-Site Scripting in Sylius ApiLoginController JSON Response

Publication date: 2026-03-10

Last updated on: 2026-03-11

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-10
Last Modified
2026-03-11
Generated
2026-06-16
AI Q&A
2026-03-11
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 3 associated CPEs
Vendor Product Version / Range
sylius sylius From 2.0.0 (inc) to 2.0.16 (exc)
sylius sylius From 2.1.0 (inc) to 2.1.12 (exc)
sylius sylius From 2.2.0 (inc) to 2.2.3 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability is a cross-site scripting (XSS) issue in the Sylius eCommerce Framework, specifically in the shop checkout login form managed by the ApiLoginController Stimulus controller.

When a login attempt fails, the AuthenticationFailureHandler returns a JSON response containing a message field. This message is rendered into the webpage's DOM using innerHTML, which allows any HTML or JavaScript code included in that message to be executed by the browser.

This means an attacker could inject malicious scripts that run in the context of the user's browser, potentially leading to unauthorized actions or data theft.

Impact Analysis

This vulnerability can allow attackers to execute arbitrary JavaScript in the context of the affected website for users who experience a failed login attempt.

Potential impacts include theft of user credentials, session hijacking, defacement of the website, or redirection to malicious sites.

Because the vulnerability occurs during login failure handling, it could be exploited to target users attempting to authenticate, potentially compromising their accounts or personal data.

Compliance Impact

I don't know

Detection Guidance

I don't know

Mitigation Strategies

To mitigate this vulnerability, upgrade Sylius to version 2.0.16, 2.1.12, 2.2.3 or above where the issue is fixed.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-31822. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart