CVE-2022-24749

Basic Cross-site Scripting and Unrestricted Upload of File with Dangerous Type in Sylius

State
Published
Severity
6.1 Medium
Published
Mar 14, 2022
Updated
Apr 22, 2025
Reserved
Feb 10, 2022

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.16.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NGitHub_M

Weaknesses

  • CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
  • CWE-434 Unrestricted Upload of File with Dangerous Type

Affected Products

ProductVersions
SyliusSylius
  • < 1.9.10Affected
  • >= 1.10.0, < 1.10.11Affected
  • >= 1.11.0, < 1.11.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.