Scan Report
15 /100
skill-xhs-mcp-service
小红书(XHS/RED)自动化助手 — MCP 服务端提供 13 个工具:登录管理、内容获取、搜索、互动操作(点赞/收藏/评论)、用户主页获取和图文/视频发布
Legitimate Xiaohongshu automation MCP service with no malicious behavior; cookie storage is local-only, network access is limited to the official platform, and all 13 tools are fully declared in documentation.
Safe to install
Pin dependency versions in package.json (e.g., [email protected] without caret), encrypt cookies.json at rest, and consider restricting XHS_HOST from 0.0.0.0 to 127.0.0.1 for production deployments.
Findings 4 items
| Severity | Finding | Location |
|---|---|---|
| Low | Unpinned dependency versions with caret ranges Supply Chain | package.json:27 |
| Low | Cookies stored in plaintext JSON file Sensitive Access | data/cookies.json:1 |
| Low | Service binds to 0.0.0.0 by default Priv Escalation | scripts/index.js:17 |
| Info | Dormant hardcoded IP in browser.js Supply Chain | scripts/browser.js:59 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | WRITE | WRITE | ✓ Aligned | browser.js:79-84 writes cookies.json to data/ |
| Network | READ | READ | ✓ Aligned | All HTTP requests target www.xiaohongshu.com only |
| Shell | NONE | WRITE | ✓ Aligned | ensure-service.js:41 spawns 'node' process to start the MCP server |
| Environment | NONE | READ | ✓ Aligned | browser.js:20 reads XHS_PROXY; index.js:17 reads XHS_PORT/XHS_HOST |
1 High 8 findings
High IP Address 硬编码 IP 地址
120.0.0.0 scripts/browser.js:59 Medium External URL 外部 URL
https://www.xiaohongshu.com scripts/login.js:22 Medium External URL 外部 URL
https://creator.xiaohongshu.com/publish/publish scripts/login.js:41 Medium External URL 外部 URL
https://www.xiaohongshu.com/explore/$ scripts/xhs-tools.js:44 Medium External URL 外部 URL
https://www.xiaohongshu.com$ scripts/xhs-tools.js:87 Medium External URL 外部 URL
https://www.xiaohongshu.com/explore scripts/xhs-tools.js:206 Medium External URL 外部 URL
https://www.xiaohongshu.com/search_result?keyword=$ scripts/xhs-tools.js:244 Medium External URL 外部 URL
https://www.xiaohongshu.com/user/profile/$ scripts/xhs-tools.js:490 File Tree
13 files · 73.7 KB · 2837 lines JavaScript 9f · 2163L
Markdown 2f · 360L
JSON 2f · 314L
├─
▾
data
│ └─
cookies.json
JSON
├─
▾
references
│ └─
api.md
Markdown
├─
▾
scripts
│ ├─
browser.js
JavaScript
│ ├─
ensure-service.js
JavaScript
│ ├─
index-fixed.js
JavaScript
│ ├─
index-progressive.js
JavaScript
│ ├─
index-sse.js
JavaScript
│ ├─
index.js
JavaScript
│ ├─
login.js
JavaScript
│ ├─
utils.js
JavaScript
│ └─
xhs-tools.js
JavaScript
├─
package.json
JSON
└─
SKILL.md
Markdown
Dependencies 5 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
@modelcontextprotocol/sdk | ^1.0.0 | npm | No | Version not pinned with ^ range |
express | ^4.18.2 | npm | No | Version not pinned with ^ range |
puppeteer | ^24.0.0 | npm | No | Version not pinned with ^ range; this is the heaviest dependency |
qrcode | ^1.5.3 | npm | No | Version not pinned with ^ range |
zod | ^3.22.0 | npm | No | Version not pinned with ^ range |
Security Positives
✓ All 13 MCP tools are fully declared in SKILL.md with matching implementations — no hidden functionality
✓ No credential harvesting: no iteration over os.environ, no SSH/AWS config access, no .env reading
✓ No data exfiltration: all network requests are confined to www.xiaohongshu.com and creator.xiaohongshu.com
✓ No obfuscation: no base64 payloads, no eval(), no atob(), no dynamic code generation
✓ No remote script execution: no curl|bash or wget|sh patterns
✓ Cookies are stored locally only and not transmitted to any third party
✓ Uses standard, well-audited dependencies (puppeteer, express, @modelcontextprotocol/sdk)