CVE-2021-20750: EC-CUBE Cross-site scripting vulnerability

ec-cube/ec-cube Updated 02 Oct 2025

Summary

24/05/2022
No i
Moderate
6.1

CVE-2021-20750: EC-CUBE Cross-site scripting vulnerability. Affects ec-cube/ec-cube across 2 version ranges.

>= 3.0.0, <= 3.0.18-p2 >= 4.0.0, < 4.0.6

No fix is published. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

EC-CUBE is an open-source e-commerce platform written in PHP. It provides various features for building and managing online stores. The vulnerability affects EC-CUBE versions 3.0.0 to 3.0.18-p2 (EC-CUBE 3 series) and versions 4.0.0 to 4.0.5-p1 (EC-CUBE 4 series).

Vulnerability Detail

The vulnerability in EC-CUBE allows a remote attacker to perform a cross-site scripting (XSS) attack. By leading an administrator or a user to a specially crafted page and performing a specific operation, the attacker can inject arbitrary script code. This can lead to the execution of malicious actions on the affected user's browser, potentially compromising their sensitive information or performing unauthorized actions.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If upgrading immediately is not possible, a temporary workaround is to implement input validation and output encoding to prevent the execution of malicious scripts. This can be done by using security libraries or frameworks that provide protection against XSS attacks.

Conclusion

The EC-CUBE e-commerce platform is vulnerable to a cross-site scripting (XSS) attack. It is crucial to upgrade to the latest version of EC-CUBE to mitigate this vulnerability. If immediate upgrading is not possible, implementing input validation and output encoding can provide temporary protection. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for ec-cube/ec-cube →

Share this vulnerability

FAQ

The vulnerability allows an attacker to inject arbitrary script code, potentially leading to the execution of malicious actions on the affected user's browser.

Users of EC-CUBE versions 3.0.0 to 3.0.18-p2 (EC-CUBE 3 series) and versions 4.0.0 to 4.0.5-p1 (EC-CUBE 4 series) are affected by this vulnerability.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your EC-CUBE installation is affected by this vulnerability. Simply upload your composer.lock file to the playground and it will provide real-time alerts for open-source vulnerabilities.

At the time of this report, there are no known public exploits for this vulnerability. However, it is important to patch your EC-CUBE installation to prevent any potential exploitation.

You can find more information about this vulnerability in the EC-CUBE advisory on GitHub: [link to advisory]

Related vulnerabilities

Recent vulnerabilities recorded for ec-cube/ec-cube.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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