CVE-2026-42458 Magento LTS: Reflected XSS - Import -> Data Flow (profiles)

Medium 5.3 Published Updated

Reflected XSS in Magento LTS admin panel allows attackers to execute scripts in admin sessions, potentially leading to account takeover.

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-2026-42458?

CVE-2026-42458 is a medium-severity cross-site scripting vulnerability in OpenMage magento-lts, published on 15 May 2026. 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 Long Term Support (LTS) is an unofficial, community-driven project provides an alternative to the Magento Community Edition e-commerce platform with a high level of backward compatibility. Prior to 20.18.0, there is a reflected XSS vulnerability under admin panel -> System -> Import/Export -> Dataflow - Profiles. This vulnerability is fixed in 20.18.0.

Weakness: CWE-87

Which versions are affected by CVE-2026-42458?

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

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

How do I fix CVE-2026-42458?

Upgrade openmage/magento-lts to 20.18.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 CVE-2026-42458 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42458 exists.

Sources

Also known as GHSA-x8jv-q8j2-487c.

Is CVE-2026-42458 in your software?

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

Check your SBOMs for free