CVE-2021-3841: Sylius Package Vulnerability Leading to Stored XSS via SVG Files

sylius/sylius Updated 02 Oct 2025

Summary

15/11/2024
Yes i
Moderate
4.1

CVE-2021-3841: Cross site scripting in sylius/sylius. Affects sylius/sylius across 3 version ranges.

< 1.9.10 >= 1.10.0, < 1.10.11 >= 1.11.0, < 1.11.2

Fixed in 1.9.10, 1.10.11 or 1.11.2, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Sylius is an open-source eCommerce framework built on Symfony, designed to provide a flexible and customizable platform for online stores. It offers features such as product management, order processing, and customer management. However, certain versions of Sylius are vulnerable to a stored cross-site scripting (XSS) attack, particularly through the handling of SVG files, which can compromise user security.

Vulnerability Detail

The vulnerability arises from improper handling of SVG files in Sylius versions prior to 1.9.10, 1.10.11, and 1.11.2. Attackers can exploit this flaw to inject malicious scripts into the application, which are then executed in the context of the user's browser. This can lead to unauthorized actions being performed on behalf of the user, data theft, or other malicious activities. The vulnerability is classified under CWE-79, indicating its nature as a cross-site scripting issue.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 1.9.10 1.9.10
    composer require sylius/sylius:1.9.10
  • >= 1.10.0, < 1.10.11 1.10.11
    composer require sylius/sylius:1.10.11
  • >= 1.11.0, < 1.11.2 1.11.2
    composer require sylius/sylius:1.11.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If immediate updating is not possible, consider disabling the upload feature for SVG files until the package can be updated. This can be done by modifying the file upload settings in your application configuration.

Conclusion

The vulnerability identified as CVE-2021-3841 poses a significant risk to users of the Sylius package due to its potential for stored XSS attacks through SVG files. It is crucial for developers to update their Sylius installations to the latest patched versions to mitigate this risk.

See every vulnerability recorded for sylius/sylius →

Share this vulnerability

FAQ

CVE-2021-3841 is a vulnerability in the Sylius package that allows for stored cross-site scripting (XSS) attacks through SVG file uploads.

Sylius versions prior to 1.9.10, 1.10.11, and 1.11.2 are affected by this vulnerability.

The vulnerability can lead to unauthorized script execution in users' browsers, potentially resulting in data theft, session hijacking, or other malicious actions.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for this vulnerability is 4.1, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for sylius/sylius.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 1.9.10 1.9.10
    composer require sylius/sylius:1.9.10
  • >= 1.10.0, < 1.10.11 1.10.11
    composer require sylius/sylius:1.10.11
  • >= 1.11.0, < 1.11.2 1.11.2
    composer require sylius/sylius:1.11.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback