CVE-2019-8233 Composer JavaScript injection possible via html comments

Medium 6.1 Published Updated

An unauthenticated attacker can inject arbitrary JavaScript into Magento 2 by exploiting HTML comment sanitization flaws, potentially leading to session hijacking or malicious actions.

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-2019-8233?

CVE-2019-8233 is a medium-severity cross-site scripting vulnerability in Magento Magento, published on 5 Nov 2019. 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

In Magento 2.2 prior to 2.2.10, Magento 2.3 prior to 2.3.3 or 2.3.2-p1, an unauthenticated user can inject arbitrary JavaScript code as a result of the sanitization engine ignoring HTML comments.

Weakness: CWE-79

Which versions are affected by CVE-2019-8233?

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

PackageAffectedFixed in
magento/community-edition PackagistFrom 2.22.2.10
magento/community-edition PackagistFrom 2.22.2.10
magento/community-edition PackagistFrom 2.32.3.3
magento/community-edition PackagistFrom 2.32.3.3

Products include Magento Magento.

How do I fix CVE-2019-8233?

Upgrade magento/community-edition to a fixed version for your release line: 2.2.10 or 2.3.3.

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-2019-8233 being exploited?

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

All Magento Magento vulnerabilities

Sources

Also known as GHSA-fm68-89m8-4gjj.

Is CVE-2019-8233 in your software?

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

Check your SBOMs for free