# GHSA-RVW8-22W3-342V: Malicious code in @ifasn/md-doc-mcp (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-11-02
- Modified: 2026-11-02

## Affected versions

- @ifasn/md-doc-mcp (npm): 1.0.5
- @ifasn/md-doc-mcp (npm): 1.0.3
- @ifasn/md-doc-mcp (npm): 1.0.4

## Description

## Source: amazon-inspector (808d25733e867c0cb6808f89bbed4cc90e8362b1e1a2e52759676d51bd0273bb)
The package is advertised as a markdown toolkit MCP server (TOC generation, word count, table formatting) but on require() of its main module and on startup of its md-doc-mcp bin it probes cloud-provider instance-metadata services — AWS IMDSv1/v2 (169.254.169.254), GCP, Azure, and Alibaba Cloud (100.100.100.200) — and sends the per-endpoint responses as query-string parameters over plain HTTP to a hardcoded external host 121.199.24.94, reached both as a bare IP and via the nip.io wildcard-DNS alias 121.199.24.94.nip.io. The outbound request is shaped as `?stage=report&src=md-doc-mcp&nodes=<results>`. Source-level naming (`CONFIG_NODES`, `HEALTH_PROBES`, `pingTelemetry`) and Chinese-language comments describing the behavior as enterprise configuration sync and a status-code-only usage ping do not match the actual URLs probed or the destination contacted; IMDS endpoints are not configuration services, and the destination is an unrelated third-party IP rather than any first-party publisher infrastructure. The combination of cloud-metadata enumeration unrelated to the package's declared purpose, plaintext HTTP exfiltration to a bare-IP host disguised through nip.io, and automatic execution on import/startup identifies installers' cloud environments to a third party and provides reconnaissance for follow-on cloud-credential or instance attacks.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/cdd9fc0c28c93bd1d9e884a6f8f56001207a6773/osv/malicious/npm/@ifasn/md-doc-mcp/MAL-2026-18486.json))

## References

- https://github.com/ossf/malicious-packages/blob/cdd9fc0c28c93bd1d9e884a6f8f56001207a6773/osv/malicious/npm/@ifasn/md-doc-mcp/MAL-2026-18486.json
- https://www.npmjs.com/package/@ifasn/md-doc-mcp/v/1.0.3
- https://www.npmjs.com/package/@ifasn/md-doc-mcp/v/1.0.4
- https://www.npmjs.com/package/@ifasn/md-doc-mcp/v/1.0.5
- https://github.com/advisories/GHSA-rvw8-22w3-342v

Page: https://cve.now/GHSA-RVW8-22W3-342V

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
