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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | sylius/sylius | 2.0.16 | GHSA-vgh8-c6fp-7gcg |
| Packagist | sylius/sylius | 2.1.12 | GHSA-vgh8-c6fp-7gcg |
| Packagist | sylius/sylius | 2.2.3 | GHSA-vgh8-c6fp-7gcg |
Affected products (as reported)
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
- https://github.com/Sylius/Sylius/security/advisories/GHSA-vgh8-c6fp-7gcg x_refsource_CONFIRM