CVE-2021-20751 EC-CUBE Cross-site scripting vulnerability

Medium 6.1 Published Updated

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-20751?

CVE-2021-20751 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 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-20751?

2 open source packages ship an affected version, including ec-cube/ec-cube. It affects 1 product.

PackageAffectedFixed in
ec-cube/ec-cube PackagistFrom 4.0.04.0.6
ec-cube/ec-cube PackagistFrom 4.0.04.0.6

Products include Ec-Cube Ec-Cube.

How do I fix CVE-2021-20751?

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-20751 being exploited?

There is no known exploitation of CVE-2021-20751 in the wild and no public exploit code.

Sources

Also known as GHSA-r6qq-qc9m-98w2.

Is CVE-2021-20751 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free