CVE-2025-27400 Magento vulnerable to stored XSS in theme config fields
Authenticated admin users can execute scripts via stored XSS in theme config fields, potentially compromising the admin panel.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-27400?
CVE-2025-27400 is a low-severity cross-site scripting vulnerability in OpenMage magento-lts, published on 28 Feb 2025. It can only be exploited from the same machine or local network, 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. Versions prior to 20.12.3 and 20.13.0 contain a vulnerability that allows script execution in the admin panel which could lead to cross-site scripting against authenticated admin users. The attack requires an admin user with configuration access, so in practicality it is not very likely to be useful given that a user with this level of access is probably already a full admin. Versions 20.12.3 and 20.13.0 contain a patch for the issue.
Weakness: CWE-79
Which versions are affected by CVE-2025-27400?
2 open source packages ship an affected version, including openmage/magento-lts.
| Package | Affected | Fixed in |
|---|---|---|
openmage/magento-lts Packagist | All versions | 20.12.3 |
openmage/magento-lts Packagist | All versions | 20.12.3 |
How do I fix CVE-2025-27400?
Upgrade openmage/magento-lts to 20.12.3 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-2025-27400 being exploited?
There is no known exploitation of CVE-2025-27400 in the wild and no public exploit code.
Sources
Also known as GHSA-5pxh-89cx-4668.