浏览全部

其他 · v0.1.2-rc.1

dsh-open-file

github.com/hyper-dsh-plugins/dsh-open-file

能力写入文件发起网络请求

一个将 window.fetch 引入 Node.js 的轻量级模块。

作者原文(英文)

A light-weight module that brings window.fetch to Node.js。

简介取自插件 README 开头,由 DeepSeek 模型翻译,仅供参考。

deepseek-harnessdshdsh-pluginfile-uploadocr
认证 L1已扫描 ✓健康 A/90周下载 177
4 项能力
许可
MIT
发布
2026-09-06
维护者
hope666
插件 ID
2045

安装命令

dsh plugin --profile web add dsh-open-file@0.1.2-rc.1

强装可用 · 需绕过门禁

当前 DSH 版本上 CLI 拒绝安装这个包。用 --accept-risk 绕过门禁之后,它能装上并挂载——限制来自版本策略,不是包坏了。要用它,得自己决定这个风险值不值得承担。

检测报告

有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
2需留意2一般20未命中
高关注需留意一般

能力清单

  • 写入文件writes-files需留意10 处命中
    • lib/storage/json.js:25await handle.writeFile(bytes, "utf8");
    • lib/storage/json.js:29await rename(temporary, target);
    • lib/storage/layout.js:21await mkdir(path, { mode: 0o700 });
    • lib/pdf/render.js:45await handle.writeFile(bytes);
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意1 处命中
    • lib/client/api.js:21response = await fetch(url, { ...init, credentials: "same-origin" });
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 读取文件reads-files一般7 处命中
    • lib/pdf/document.js:7bytes = await readFile(path);
    • lib/storage/json.js:44return JSON.parse(await readFile(target, "utf8"));
    • lib/storage/repository.js:144return readFile(path);
    • lib/http/router.js:85await pipeline(createReadStream(source.path), response);
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 动态加载模块dynamic-import一般2 处命中
    • lib/pdf/document.js:14const { getDocument } = await import("pdfjs-dist/legacy/build/pdf.mjs");
    • lib/storage/json.js:43const { readFile } = await import("node:fs/promises");
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
写入文件writes-files需留意10
发起网络请求network需留意1
读取文件reads-files一般7
动态加载模块dynamic-import一般2

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 98 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

可信度

90 健康分 A 扣分项下方逐条附证据
  • -10声明与实物不符:peer-static-import-unsatisfiedmajor:{'@deepseek-ai/dsh-session': '0.1.2-rc.1'}

认证等级 L1

  • L0静态结构与契约✓sha512-hqQ5mnjIpI+GR5uh… 与本地 tarball 复算一致,补丁与入口齐备,另有 1 项声明不一致(计入健康扣分)
  • L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
  • L2隔离沙箱冒烟—试装未通过(forced-ok)
  • L3运行时健康监控—未抽样(本层是抽样检测:没有会话不等于干净)
评分口径与作者信息

从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分

维护者
hope666
仓库
https://github.com/hyper-dsh-plugins/dsh-open-file
许可
MIT
最后发布
2026-09-06
周下载
177
star
3

扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。

认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。

DSH peer 依赖12 个cordisdsh-agentdsh-client-localedsh-client-ui-chatdsh-client-ui-conversationdsh-client-ui-input-triggerdsh-client-ui-rendererdsh-client-ui-slotsdsh-host-webserverdsh-sessiondsh-skilldsh-tools均为 @deepseek-ai/ 下的包
Node 要求>=22.13.0
第三方依赖9 个
bundle patch./cordis.patch.yml
依赖安全公告9 条,见下方

这个插件声明的依赖中,有 9 条已公开的安全公告 (最高等级:中):

等级依赖包编号摘要
中fast-xml-parserCVE-2026-33036fast-xml-parser affected by numeric entity expansion bypassing all entity expansion limits (incomplete fix for CVE-2026-26278)
修复版本:4.5.5, 5.5.6 详情
中fast-xml-parserCVE-2026-41650fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters
修复版本:5.7.0 详情
中fast-xml-parserCVE-2026-26278fast-xml-parser affected by DoS through entity expansion in DOCTYPE (no expansion limit)
修复版本:4.5.4, 5.3.6 详情
中fast-xml-parserCVE-2026-33349Entity Expansion Limits Bypassed When Set to Zero Due to JavaScript Falsy Evaluation in fast-xml-parser
修复版本:4.5.5, 5.5.7 详情
中fast-xml-parserCVE-2026-25896fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names
修复版本:4.5.4, 5.3.5 详情
中yamlCVE-2023-2251Uncaught Exception in yaml
修复版本:2.2.2 详情
低yamlCVE-2026-33532yaml is vulnerable to Stack Overflow via deeply nested YAML collections
修复版本:1.10.3, 2.8.3 详情
低yauzlCVE-2026-31988yauzl contains an off-by-one error
修复版本:3.2.1 详情
未分级fast-xml-parserCVE-2026-27942fast-xml-parser has stack overflow in XMLBuilder with preserveOrder
修复版本:4.5.4, 5.3.8 详情

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

元数据

主页https://github.com/hyper-dsh-plugins/dsh-open-file#readme
仓库最近提交2026-09-06
仓库创建2026-08-17

返回首页