CVE-2022-24749CWE-434CWE-80

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

Medium · published March 14, 2022

CVSS v3.1
6.1
EPSS
1%
Percentile
65.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.1 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.01108 · 65.6th percentile
Weaknesses
CWE-434 · Unrestricted Upload of File with Dangerous Type; CWE-80 · Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Published
2022-03-14T21:45Z
EPSS history
Timeline
  • 14 MAR 21:45Z
    Basic Cross-site Scripting and Unrestricted Upload of File with Dangerous Type in Sylius
    cvelistv5