CVE-2020-9691 Magento DOM-based Cross-site scripting vulnerability

Critical 9.6 Published Updated

An attacker can execute arbitrary code via DOM-based cross-site scripting in Magento, requiring an upgrade to secure the e-commerce platform.

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-2020-9691?

CVE-2020-9691 is a critical cross-site scripting vulnerability in Magento Magento, published on 29 Jul 2020. 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

Magento versions 2.3.5-p1 and earlier, and 2.3.5-p1 and earlier have a dom-based cross-site scripting vulnerability. Successful exploitation could lead to arbitrary code execution.

Weakness: CWE-79

Which versions are affected by CVE-2020-9691?

5 open source packages ship an affected version, including magento/community-edition, magento and magento/project-community-edition. It affects 1 product.

PackageAffectedFixed in
magento/community-edition PackagistAll versions2.3.5-p2
magento/community-edition PackagistAll versions2.3.5-p2
magento BitnamiAll versions2.3.5
magento/project-community-edition PackagistAll versions to 2.0.2None
magento/project-community-edition PackagistAll versions to 2.0.2None

Products include Magento Magento.

How do I fix CVE-2020-9691?

Upgrade magento/community-edition to 2.3.5-p2 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-2020-9691 being exploited?

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

All Magento Magento vulnerabilities

Sources

Also known as BIT-magento-2020-9691, GHSA-g7pc-799q-743f.

Is CVE-2020-9691 in your software?

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

Check your SBOMs for free