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

CVE-2022-24749: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

March 14, 2022 (updated March 18, 2022)

Sylius is an open source eCommerce platform. In versions prior to 1.9.10, 1.10.11, and 1.11.2, it is possible to upload an SVG file containing cross-site scripting (XSS) code in the admin panel. In order to perform a XSS attack, the file itself has to be open in a new card or loaded outside of the IMG tag. The problem applies both to the files opened on the admin panel and shop pages. The issue is fixed in versions 1.9.10, 1.10.11, and 1.11.2. As a workaround, require a library that adds on-upload file sanitization and overwrite the service before writing the file to the filesystem. The GitHub Security Advisory contains more specific information about the workaround.

References

  • github.com/Sylius/Sylius/releases/tag/v1.10.11
  • github.com/Sylius/Sylius/releases/tag/v1.11.2
  • github.com/Sylius/Sylius/releases/tag/v1.9.10
  • github.com/Sylius/Sylius/security/advisories/GHSA-4qrp-27r3-66fj
  • github.com/advisories/GHSA-4qrp-27r3-66fj
  • nvd.nist.gov/vuln/detail/CVE-2022-24749

Code Behaviors & Features

Detect and mitigate CVE-2022-24749 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 before 1.9.10, all versions starting from 1.10.0 before 1.10.11, all versions starting from 1.11.0 before 1.11.2

Fixed versions

  • 1.9.10
  • 1.10.11
  • 1.11.2

Solution

Upgrade to versions 1.9.10, 1.10.11, 1.11.2 or above.

Impact 6.1 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-434: Unrestricted Upload of File with Dangerous Type
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

Source file

packagist/sylius/sylius/CVE-2022-24749.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:53 +0000.