CVE-2025-27400: Openmage/magento lts Cross-Site Scripting Vulnerability

LOW
Advisory Identifier: GHSA-5pxh-89cx-4668
CVSS 2.9
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-27400
GHSA Identifier GHSA-5pxh-89cx-4668
Severity LOW
CVSS v3.1 Base Score 2.9
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Openmage/magento lts
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Adjacent (AV:A)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (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.

openmage/magento-lts fixed: 20.12.3
Upgrade openmage/magento-lts to 20.12.3
Verify Direct and Transitive Dependencies

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

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)

CVE-2025-27400 Affected Openmage/magento lts Versions

1 component(s)
Fixed Versions:
20.12.3
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?
CVE-2025-27400 is a security vulnerability in Openmage/magento lts involving Magento LTS vulnerable to stored XSS in theme config fields under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Openmage/magento lts versions are affected?
Affected versions include releases prior to 20.12.3 across affected packages: openmage/magento-lts.
What version fixes CVE-2025-27400?
Upgrading to 20.12.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is openmage/magento-lts affected?
Yes, openmage/magento-lts is affected in releases prior to 20.12.3. Upgrade your dependency to 20.12.3 or later.
What is the CVSS score of CVE-2025-27400?
CVE-2025-27400 has a CVSS v3.1 base score of 2.9 (LOW) with vector string CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2025-27400?
CVE-2025-27400 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Packagist dependencies for CVE-2025-27400?
Run the dependency tree command: 'inspect dependencies for openmage/magento-lts'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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![image](https://github.com/user-attachments/assets/fd5b8f31-bf0c-4e87-8b50-03c6c8428bed)",
  "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"
  }
}