市场与管理 · v0.1.0-rc.8
dsh-plugin-hub-local
受信任的本地 Plugin Hub 提供方。部署时需显式提供 HTTPS registryUrl 和本地固定的 Ed25519 密钥;若缺少配置,则该可选提供方不会被挂载。
作者原文(英文)
Trusted local Plugin Hub provider. A deployment explicitly supplies an HTTPS registryUrl and locally pinned Ed25519 keys; absent configuration leaves the optional provider unmounted.
简介取自插件 README 开头,由 DeepSeek 模型翻译,仅供参考。
安装命令
dsh plugin --profile web add @lingxi-ai-cn/dsh-plugin-hub-local@0.1.0-rc.8
强装后仍失败
即使绕过版本门禁,这个包装上之后仍然失败。说明问题不只是版本对齐,包本身在当前环境里也跑不起来。
检测报告
能力清单
- 可执行外部程序
spawns-processes高关注2 处命中lib/index.js:13import { spawn } from "node:child_process";lib/maintenance-bin.js:3import { spawn } from "node:child_process";- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 写入文件
writes-files需留意28 处命中lib/index.js:370await mkdir(cacheDir, {lib/index.js:374await mkdir(tempDir, {lib/index.js:439await unlink(temporary);lib/index.js:443await unlink(temporary).catch(() => void 0);- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 可终止进程
kills-processes需留意6 处命中lib/index.js:1233process.kill(pid, 0);lib/index.js:1408else process.kill(-child.pid, "SIGTERM");lib/index.js:1413else process.kill(-child.pid, "SIGKILL");lib/maintenance-bin.js:245process.kill(pid, 0);- 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
- 发起网络请求
network需留意2 处命中lib/index.js:403response = await fetch(current, {lib/index.js:1706const response = await fetch(current, init);- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 读取文件
reads-files一般10 处命中lib/index.js:76entries = await readdir(join(dataDir, "transactions"), { withFileTypes: true });lib/index.js:86receipts.push(parseReceipt(JSON.parse(await readFile(path, "utf8"))));lib/index.js:458for await (const chunk of createReadStream(path)) {lib/index.js:778parsed = JSON.parse(await readFile(path, "utf8"));- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般3 处命中lib/index.js:968this.pendingBoot = pendingBoot(options.environment ?? process.env);lib/index.js:1120const boot = pendingBoot(process.env);lib/index.js:1161for (const [key, value] of Object.entries(process.env)) if (value !== void 0 && (ENV_ALLOWLIST.has(key) || key.startsWit…- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 接触凭据或密钥
credentials一般1 处命中lib/index.js:527if (url.origin !== NPM_REGISTRY_ORIGIN && !fixtureAllowed || url.username !== "" || url.password !== "" || url.hash !== …- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 2 |
| 写入文件 | writes-files | 需留意 | 28 |
| 可终止进程 | kills-processes | 需留意 | 6 |
| 发起网络请求 | network | 需留意 | 2 |
| 读取文件 | reads-files | 一般 | 10 |
| 读取环境变量 | reads-env | 一般 | 3 |
| 接触凭据或密钥 | credentials | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 14 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
可信度
- -10声明与实物不符:peer-static-import-unsatisfiedmajor:{'@deepseek-ai/dsh-app-boot': '0.1.0-rc.8', '@deepseek-ai/dsh-home-paths': '0.1.0-rc.8'}
- -2README 里没有可复制的示例minor
认证等级 L1
- L0静态结构与契约✓sha512-5xR8lahBpbW6GhQC… 与本地 tarball 复算一致,补丁与入口齐备,另有 1 项声明不一致(计入健康扣分)
- L1配置组合与依赖图✓peer 型依赖,不挂载自己的条目,无组合面
- L2隔离沙箱冒烟—试装未通过(force-failed)
- L3运行时健康监控—未抽样(本层是抽样检测:没有会话不等于干净)
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- lingxi-ai-cn
- 仓库
- https://github.com/Lingxi-AI-cn/dsh-tui-plugin
- 许可
- MIT
- 最后发布
- 2026-08-20
- 周下载
- 42
- star
- 1
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。
| DSH peer 依赖 | 4 个cordisdsh-app-bootdsh-home-pathsdsh-invariants均为 @deepseek-ai/ 下的包 |
|---|---|
| 第三方依赖 | 3 个 |
| 依赖安全公告 | 13 条,见下方 |
这个插件声明的依赖中,有 13 条已公开的安全公告 (最高等级:高):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 高 | tar | CVE-2026-26960 | Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction 修复版本:7.5.8 详情 |
| 中 | semver | CVE-2022-25883 | semver vulnerable to Regular Expression Denial of Service 修复版本:5.7.2, 6.3.1, 7.5.2 详情 |
| 中 | tar | CVE-2026-59873 | node-tar: Decompression/parse DoS via unlimited input 修复版本:7.5.19 详情 |
| 中 | tar | CVE-2026-24842 | node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal 修复版本:7.5.7 详情 |
| 中 | tar | CVE-2026-59874 | node-tar: Negative tar entry size causes infinite loop in archive replace 修复版本:7.5.18 详情 |
| 中 | tar | CVE-2026-73566 | node-tar: Uncontrolled recursion in mapHas/filesFilter allows uncatchable stack-overflow DoS via crafted long-path tar with member selection 修复版本:7.5.21 详情 |
| 中 | tar | CVE-2026-23950 | Race Condition in node-tar Path Reservations via Unicode Ligature Collisions on macOS APFS 修复版本:7.5.4 详情 |
| 低 | tar | CVE-2026-59875 | node-tar: Uncaught Exception DoS via NUL byte in PAX path/linkpath records 修复版本:7.5.17 详情 |
| 低 | tar | CVE-2026-59871 | node-tar: Process crash via PAX numeric path type confusion 修复版本:7.5.18 详情 |
| 未分级 | tar | CVE-2026-23745 | node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization 修复版本:7.5.3 详情 |
| 未分级 | tar | CVE-2026-31802 | node-tar Symlink Path Traversal via Drive-Relative Linkpath 修复版本:7.5.11 详情 |
| 未分级 | tar | CVE-2026-29786 | tar has Hardlink Path Traversal via Drive-Relative Linkpath 修复版本:7.5.10 详情 |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。
元数据
| 主页 | https://github.com/Lingxi-AI-cn/dsh-tui-plugin#readme |
|---|---|
| 仓库最近提交 | 2026-10-02 |
| 仓库创建 | 2026-08-20 |
DSH