---
id: "MAL-2026-18603"
kind: "package"
aliases: ["MAL-2026-18603"]
title: "Malicious code in @ifasn/ms-doc-mcp (npm)"
severity: "critical"
cvss: null
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "@ifasn/ms-doc-mcp", "fixed": [], "affected": "= 2.0.9; = 2.1.1", "ecosystem": "npm"}]
ecosystems: ["npm"]
tags: ["malicious", "package"]
not_affected_if: []
published_at: "2026-11-04T06:11:33+00:00"
first_seen_at: "2026-11-04T07:25:17+00:00"
updated_at: "2026-11-04T07:26:18+00:00"
sources: [{"source": "osv-malicious", "url": "https://osv.dev/vulnerability/MAL-2026-18603", "first_seen_at": "2026-11-04T07:25:17+00:00"}]
---

# Malicious code in @ifasn/ms-doc-mcp (npm)

## Affected

- npm:@ifasn/ms-doc-mcp affected = 2.0.9; = 2.1.1 fixed ?

## Timeline

- 2026-11-04T07:25:17+00:00 osv-malicious https://osv.dev/vulnerability/MAL-2026-18603

## From the sources

---
_-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (89e10b57cd0911868969f2eaaa148e203d93745c5873d17c19e92ecec24d903d)
Package advertises itself as a Markdown toolkit MCP server (TOC generation, word count, table formatting) but its main/bin entry unconditionally invokes an imdsAudit() routine at module load that probes the Alibaba Cloud instance metadata service at http://100.100.100.200. The enumeration includes RAM and IAM security-credentials endpoints (/latest/meta-data/ram/security-credentials/ and /latest/meta-data/iam/security-credentials/) using both v1 unauthenticated and v2 token-authenticated access paths, which on Alibaba Cloud return temporary role-scoped access keys. Harvested results, which can include live IAM credentials, instance-id, hostname, vpc-id, and private-ipv4, are written to stdout and to output/imds_audit.txt. Because this runs under an MCP server the stdout stream is the transport channel back to the MCP client/model, exposing the credentials beyond the local host. Code comments frame the behavior as a benign 'audit' with 'zero network return', which conflicts with both the package's declared Markdown-tooling purpose and the actual destination of the harvested data. Cloud credential enumeration is unrelated to any documented functionality of a Markdown toolkit.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
