CVE-2026-5603: @elgentos/magento2 dev mcp @elgentos/magento2-dev-mcp Vulnerable To Command Injection Vulnerability

LOW
Advisory Identifier: GHSA-xqv9-qr76-hfq2
CVSS 5.3
CWE-77
Published
Advisory Summary

CVE-2026-5603 is a LOW (CVSS 5.3) @elgentos/magento2-dev-mcp vulnerable to command injection vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting @elgentos/magento2 dev mcp libraries in the npm ecosystem. The issue involves @elgentos/magento2-dev-mcp vulnerable to command injection. Remediation is available in the latest vendor maintenance releases.

CVE-2026-5603 at a Glance

CVE Identifier CVE-2026-5603
GHSA Identifier GHSA-xqv9-qr76-hfq2
Severity LOW
CVSS v3.1 Base Score 5.3
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product @elgentos/magento2 dev mcp
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-5603

To remediate this vulnerability, upgrade all affected @elgentos/magento2 dev mcp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@elgentos/magento2-dev-mcp fixed: Latest secure release
npm install @elgentos/magento2-dev-mcp@Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @elgentos/magento2-dev-mcp

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-5603, inspect your project dependencies using npm:

npm ls @elgentos/magento2-dev-mcp

Analyze the terminal output to locate any version of @elgentos/magento2 dev mcp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The npm ls @elgentos/magento2-dev-mcp command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In @elgentos/magento2 dev mcp, 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

A vulnerability was identified in elgentos magento2-dev-mcp up to 1.0.2. The affected element is the function executeMagerun2Command of the file src/index.ts. Such manipulation leads to os command injection. An attack has to be approached locally. The exploit is publicly available and might be used. The name of the patch is aa1ffcc0aea1b212c69787391783af27df15ae9d. A patch should be applied to remediate this issue.

CVE-2026-5603 Affected @elgentos/magento2 dev mcp Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
@elgentos/magento2-dev-mcp
npm
≤ 1.0.2

References

Frequently Asked Questions

What is CVE-2026-5603?
CVE-2026-5603 is a security vulnerability in @elgentos/magento2 dev mcp involving @elgentos/magento2-dev-mcp vulnerable to command injection under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which @elgentos/magento2 dev mcp versions are affected?
Affected versions include releases prior to current release patches across affected packages: @elgentos/magento2-dev-mcp.
What version fixes CVE-2026-5603?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is @elgentos/magento2-dev-mcp affected?
Yes, @elgentos/magento2-dev-mcp is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-5603?
CVE-2026-5603 has a CVSS v3.1 base score of 5.3 (LOW) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2026-5603?
CVE-2026-5603 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check npm dependencies for CVE-2026-5603?
Run the dependency tree command: 'npm ls @elgentos/magento2-dev-mcp'. 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-xqv9-qr76-hfq2",
  "modified" : "2026-04-06T18:02:40Z",
  "published" : "2026-04-06T00:30:24Z",
  "aliases" : [ "CVE-2026-5603" ],
  "summary" : "@elgentos/magento2-dev-mcp vulnerable to command injection",
  "details" : "A vulnerability was identified in elgentos magento2-dev-mcp up to 1.0.2. The affected element is the function executeMagerun2Command of the file src/index.ts. Such manipulation leads to os command injection. An attack has to be approached locally. The exploit is publicly available and might be used. The name of the patch is aa1ffcc0aea1b212c69787391783af27df15ae9d. A patch should be applied to remediate this issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@elgentos/magento2-dev-mcp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-5603"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/elgentos/magento2-dev-mcp/issues/4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/elgentos/magento2-dev-mcp/pull/5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/elgentos/magento2-dev-mcp/commit/aa1ffcc0aea1b212c69787391783af27df15ae9d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/elgentos/magento2-dev-mcp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/user-attachments/files/25895777/magento2-dev-mcp_bug.pdf"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/submit/784864"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/355395"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/355395/cti"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-06T18:02:40Z",
    "nvd_published_at" : "2026-04-05T23:16:20Z"
  }
}