GHSA-9j5w-2cqc-cwj9 Magento LTS vulnerable to Stored XSS via TinyMCE WYSIWYG Editor

Not scored Published

Stored XSS in Magento LTS TinyMCE editor allows attackers to execute scripts in victim browsers, potentially leading to account takeover.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-9j5w-2cqc-cwj9?

GHSA-9j5w-2cqc-cwj9 is a cross-site scripting vulnerability in openmage/magento-lts, published on 8 Dec 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

From HackerOne report #1948040 by Halit AKAYDIN (hltakydn)

Impact

What kind of vulnerability is it? Who is impacted?

The TinyMCE WYSIWYG editor fails to filter scripts when rendering the HTML in specially crafted HTML tags.

Patches

Has the problem been patched? What versions should users upgrade to?

This vulnerability was fixed in version 20.2.0 by upgrading TinyMCE to a recent version in https://github.com/OpenMage/magento-lts/pull/3220

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

The WYSIWYG editor features could be disabled in the configuration. Possibly some WAF appliances would filter this attack.

References

Are there any links users can visit to find out more?

The attack is simply an exploit of the "onmouseover" attribute of an img element as described on OWASP XSS Filter Evasion

Which versions are affected by GHSA-9j5w-2cqc-cwj9?

2 open source packages ship an affected version, including openmage/magento-lts.

PackageAffectedFixed in
openmage/magento-lts PackagistAll versions20.2.0
openmage/magento-lts PackagistAll versions20.2.0

How do I fix GHSA-9j5w-2cqc-cwj9?

Upgrade openmage/magento-lts to 20.2.0 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 GHSA-9j5w-2cqc-cwj9 being exploited?

There is no known exploitation of GHSA-9j5w-2cqc-cwj9 in the wild and no public exploit code.

Sources

Is GHSA-9j5w-2cqc-cwj9 in your software?

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

Check your SBOMs for free