Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. sylius/sylius
  4. ›
  5. CVE-2026-31823

CVE-2026-31823: Sylius Vulnerable to Authenticated Stored XSS

March 11, 2026

An authenticated stored cross-site scripting (XSS) vulnerability exists in multiple places across the shop frontend and admin panel due to unsanitized entity names being rendered as raw HTML.

Shop breadcrumbs (shared/breadcrumbs.html.twig): The breadcrumbs macro uses the Twig |raw filter on label values. Since taxon names, product names, and ancestor names flow directly into these labels, a malicious taxon name like <img src=x onerror=alert('XSS')> is rendered and executed as JavaScript on the storefront.

Admin product taxon picker (ProductTaxonTreeController.js): The rowRenderer method interpolates ${name} directly into a template literal building HTML, allowing script injection through taxon names in the admin panel.

Admin autocomplete fields (Tom Select): Dropdown items and options render entity names as raw HTML without escaping, allowing XSS through any autocomplete field displaying entity names.

An authenticated administrator can inject arbitrary HTML or JavaScript via entity names (e.g. taxon name) that is persistently rendered for all users.

References

  • github.com/Sylius/Sylius
  • github.com/Sylius/Sylius/security/advisories/GHSA-mx4q-xxc9-pf5q
  • github.com/advisories/GHSA-mx4q-xxc9-pf5q
  • nvd.nist.gov/vuln/detail/CVE-2026-31823

Code Behaviors & Features

Detect and mitigate CVE-2026-31823 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.0.16, all versions starting from 2.1.0 before 2.1.12, all versions starting from 2.2.0 before 2.2.3

Fixed versions

  • 2.0.16
  • 2.1.12
  • 2.2.3

Solution

Upgrade to versions 2.0.16, 2.1.12, 2.2.3 or above.

Impact 4.8 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/sylius/sylius/CVE-2026-31823.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 10 Apr 2026 12:18:07 +0000.