CVE-2022-24749

Medium

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.

SeverityMedium
CVSS6.1
Exploit probability—
ProductSylius
PublishedMar 14, 2022
First seenMar 14, 2022

How to fix

Update
  • sylius sylius1.9.10, 1.10.11, 1.11.2 or later
  • sylius/sylius1.9.10, 1.10.11, 1.11.2 or later

Affected products

ProductAffected versionsFixed in
sylius syliusv < 1.9.10, 1.10.0 ≤ v < 1.10.11, 1.11.0 ≤ v < 1.11.21.9.10, 1.10.11, 1.11.2
sylius/syliusPackagistv < 1.9.10, 1.10.0 ≤ v < 1.10.11, 1.11.0 ≤ v < 1.11.21.9.10, 1.10.11, 1.11.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.