CVE-2024-41676: Magento LTS vulnerable to stored Cross-site Scripting (XSS) in admin system configs
Impact This XSS vulnerability is about the system configs design/header/welcome design/header/logosrc design/header/logosrcsmall design/header/logoalt They are intended to enable admins to set a text in the two cases, and to define an image url for the other two cases. But because of previously missing escaping allowed to input arbitrary html and as a consequence also arbitrary JavaScript.
Published Jul 29, 2024 · Updated Aug 8, 2024
Affected packages
openmage/magento-lts
- Ecosystem
- Composer (PHP)
- Affected
- < 20.10.1
- Fixed in
- 20.10.1
- Check
composer show openmage/magento-lts
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
This XSS vulnerability is about the system configs
- design/header/welcome
- design/header/logo_src
- design/header/logo_src_small
- design/header/logo_alt
They are intended to enable admins to set a text in the two cases, and to define an image url for the other two cases. But because of previously missing escaping allowed to input arbitrary html and as a consequence also arbitrary JavaScript.
While this is in most usage scenarios not a relevant issue, some people work with more restrictive roles in the backend. Here the ability to inject JavaScript with these settings would be an unintended and unwanted privilege.
Patches
_Has the problem been patched? What versions should users upgrade to?_
The problem is patched with Version 20.10.1 or higher.
Workarounds
_Is there a way for users to fix or remediate the vulnerability without upgrading?_
Possible mitigations are
- Restricting access to the System Configs
- checking templates where these settings are used to apply proper html filtering
For Users relying on this possibility
Some Users might actually rely on the ability to use html there. You can restore the previous behavior by making use of the new introduced ->getUnescapedValue() method on this escaped elements. Developers should have a look at the newly introduced Mage_Core_Model_Security_HtmlEscapedString
Credit
Credit goes to Aakash Adhikari @justlife4x4 for finding this issue
Credited to justlife4x4, Flyingmana.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-42458
Magento LTS: Reflected XSS - Import -> Data Flow (profiles)
medium5.3May 6, 2026CVE-2026-42155
Magento LTS has Weak API Session ID — Predictable MD5 of Time-Derived Inputs
critical9.3May 5, 2026CVE-2026-42207
Magento LTS Vulnerable to Open Redirect via Unvalidated `uenc` Parameter in `stockAction()`
medium6.1May 5, 2026CVE-2026-25524
OpenMage LTS: Phar Deserialization leads to Remote Code Execution
high8.1Apr 21, 2026CVE-2026-25525
OpenMage LTS has a Path Traversal Filter Bypass in Dataflow Module
medium4.9Apr 21, 2026CVE-2026-40098
OpenMage LTS: Cross-user wishlist import leads to private option & file disclosure
medium5.4Apr 21, 2026
