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

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-03-10T21:27:38.691Z
- Modified: 2026-06-17T10:34:31.397Z
- Also known as: GHSA-vgh8-c6fp-7gcg
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- Sylius Sylius: >= 2.2.0, < 2.2.3; >= 2.1.0, < 2.1.12; >= 2.0.0, < 2.0.16; from 2.0.0 before 2.0.16; from 2.1.0 before 2.1.12; from 2.2.0 before 2.2.3
- sylius/sylius (Packagist): from 2.0.0 before 2.0.16; from 2.1.0 before 2.1.12; from 2.2.0 before 2.2.3

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/Sylius/Sylius/security/advisories/GHSA-vgh8-c6fp-7gcg> (mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31822> (advisory)
- <https://github.com/Sylius/Sylius> (package)

## Sources

- CVE List: [CVE-2026-31822](https://www.cve.org/CVERecord?id=CVE-2026-31822), CVE Terms of Use, modified 2026-03-11
- GitHub Advisory Database: [GHSA-vgh8-c6fp-7gcg](https://github.com/advisories/GHSA-vgh8-c6fp-7gcg), CC-BY-4.0, modified 2026-03-13
- NVD: [CVE-2026-31822](https://nvd.nist.gov/vuln/detail/CVE-2026-31822), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-31822 · Whole record: https://cve.day/CVE-2026-31822.json · Rebuilt by cve.day 2026-11-25T22:59:15.676Z
