Magento LTS vulnerable to stored XSS in theme config fields
Date: 2025-03
Affected: composer/openmage/magento-lts
Attack vector: xss
Category: vulnerability-disclosure
Severity: Low
CVE: CVE-2025-27400
CWE: CWE-79
CVSS: 2.9 (CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:L)

As reported by [Aakash Adhikari](https://hackerone.com/dark_haxor), Github: @justlife4x4, the Design > Themes > Skin (Images / CSS) config field allows a Stored XSS when it contains an end script tag. ### Impact A malicious user with access to this configuration field could use a Stored XSS to affect other authenticated admin users in the admin panel. The attack requires an admin user with configuration access, so in practice, it is not very likely to be used for gaining elevated privileges, although it could theoretically be used to impersonate other users. ![image](https://github.com/user-attachments/assets/fd5b8f31-bf0c-4e87-8b50-03c6c8428bed)


Mitigations:

Architectural layers (MAESTRO):