Vulnerability · Published Mar 10, 2026 · Assigned by GitHub_M

CVE-2026-31822Sylius has a XSS vulnerability in checkout login form

Medium 5.3

In plain English

A medium-severity cross-site scripting in Sylius from Sylius. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.3Medium
Exploit odds (30 days)0.2%top 88.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistsylius/sylius2.0.16GHSA-vgh8-c6fp-7gcg
Packagistsylius/sylius2.1.12GHSA-vgh8-c6fp-7gcg
Packagistsylius/sylius2.2.3GHSA-vgh8-c6fp-7gcg

Affected products (as reported)

VendorProductVersions
Sylius Sylius >= 2.2.0, < 2.2.3>= 2.1.0, < 2.1.12>= 2.0.0, < 2.0.16

Weakness: CWE-79 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

References