CVE-2021-20750 EC-CUBE Cross-site scripting vulnerability
Remote attackers can inject arbitrary scripts into EC-CUBE, potentially compromising administrator or user accounts via crafted pages.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-20750?
CVE-2021-20750 is a medium-severity cross-site scripting vulnerability in EC-CUBE, published on 28 Jun 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Cross-site scripting vulnerability in EC-CUBE EC-CUBE 3.0.0 to 3.0.18-p2 (EC-CUBE 3 series) and EC-CUBE 4.0.0 to 4.0.5-p1 (EC-CUBE 4 series) allows a remote attacker to inject an arbitrary script by leading an administrator or a user to a specially crafted page and to perform a specific operation.
Weakness: CWE-79
Which versions are affected by CVE-2021-20750?
4 open source packages ship an affected version, including ec-cube/ec-cube. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ec-cube/ec-cube Packagist | From 3.0.0 to 3.0.18-p2 | None |
ec-cube/ec-cube Packagist | From 3.0.0 to 3.0.18-p2 | None |
ec-cube/ec-cube Packagist | From 4.0.0 | 4.0.6 |
ec-cube/ec-cube Packagist | From 4.0.0 | 4.0.6 |
Products include Ec-Cube Ec-Cube.
How do I fix CVE-2021-20750?
Upgrade ec-cube/ec-cube to 4.0.6 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-20750 being exploited?
There is no known exploitation of CVE-2021-20750 in the wild and no public exploit code.
Other vulnerabilities in EC-CUBE
Sources
Also known as GHSA-vrpv-26fm-7vf7.