CVE-2026-31822

Medium

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.

SeverityMedium
CVSS6.1
Exploit probability12. percentile0.2%
ProductSylius
PublishedMar 10, 2026
First seenMar 10, 2026

How to fix

Update
  • sylius sylius2.0.16, 2.1.12, 2.2.3 or later
  • sylius/sylius2.0.16, 2.1.12, 2.2.3 or later

Affected products

ProductAffected versionsFixed in
sylius sylius2.0.0 ≤ v < 2.0.16, 2.1.0 ≤ v < 2.1.12, 2.2.0 ≤ v < 2.2.32.0.16, 2.1.12, 2.2.3
sylius/syliusPackagist2.0.0 ≤ v < 2.0.16, 2.1.0 ≤ v < 2.1.12, 2.2.0 ≤ v < 2.2.32.0.16, 2.1.12, 2.2.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.