Is @ifasn/ms-doc-mcp safe?
Versions 2.0.9 and 2.1.1 of @ifasn/ms-doc-mcp were compromised. Other versions are not flagged as malicious. npm's latest tag points to 2.1.1, one of these versions, so an unpinned install gets it.
Do not install @ifasn/ms-doc-mcp 2.0.9 or 2.1.1
CRITICALCompromised releases. Added to CyberXYZ 2026-11-04, OSV malicious-package feed (Google / OpenSSF).
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.
Reported by Amazon Inspector via OSV.
- Malicious
- 2.0.9, 2.1.1
- Move to
- 2.1.0 newest 2.x release, no known advisory
If one of these versions was installed, remove it and treat the credentials, tokens and SSH keys on that machine as exposed: rotate them. Check CI runners and container images that installed it too.
npm install @ifasn/ms-doc-mcp@2.1.0
0 direct dependencies
none carry a known advisory
0 packages depend on it
an advisory here reaches each of them
Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.
Checked 2026-11-08 at 10:55 UTC. Updated continuously from NVD, GHSA, OSV and CNA feeds.