CVE-2025-27400: Openmage/magento lts Cross-Site Scripting Vulnerability
LOWCVE-2025-27400 is a LOW (CVSS 2.9) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Openmage/magento lts libraries in the Packagist ecosystem. The issue involves magento lts vulnerable to stored xss in theme config fields. Remediation is available by upgrading affected packages to version 20.12.3.
CVE-2025-27400 at a Glance
Security Impact
CVSS: 2.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:L).
How to Fix CVE-2025-27400
To remediate this vulnerability, upgrade all affected Openmage/magento lts dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade openmage/magento-lts to 20.12.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for openmage/magento-lts
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-27400, inspect your project dependencies for Openmage/magento lts:
inspect dependencies for openmage/magento-lts
Analyze the terminal output to locate any version of Openmage/magento lts in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 20.12.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Openmage/magento lts, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-27400 Affected Openmage/magento lts Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
openmage/magento-lts
|
Packagist |
< 20.12.3
|
20.12.3
|
References
Frequently Asked Questions
What is CVE-2025-27400?
Which Openmage/magento lts versions are affected?
What version fixes CVE-2025-27400?
Is openmage/magento-lts affected?
What is the CVSS score of CVE-2025-27400?
What CWE is associated with CVE-2025-27400?
How can I check Packagist dependencies for CVE-2025-27400?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5pxh-89cx-4668",
"modified" : "2025-03-03T19:47:12Z",
"published" : "2025-03-03T19:47:12Z",
"aliases" : [ "CVE-2025-27400" ],
"summary" : "Magento LTS vulnerable to stored XSS in theme config fields",
"details" : "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.\n\n### Impact\nA malicious user with access to this configuration field could use a Stored XSS to affect other authenticated admin users in the admin panel.\n\nThe 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.\n\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "openmage/magento-lts"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "20.12.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/OpenMage/magento-lts/security/advisories/GHSA-5pxh-89cx-4668"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-27400"
}, {
"type" : "WEB",
"url" : "https://github.com/OpenMage/magento-lts/commit/d307e5bf75729a2347dde0952fe9fd9fcd9c6aea"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/OpenMage/magento-lts"
}, {
"type" : "WEB",
"url" : "https://github.com/OpenMage/magento-lts/releases/tag/v20.12.3"
}, {
"type" : "WEB",
"url" : "https://github.com/OpenMage/magento-lts/releases/tag/v20.13.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-03T19:47:12Z",
"nvd_published_at" : "2025-02-28T16:15:40Z"
}
}