浏览全部

模型与账号 · v0.2.11

dsh-web-fetch-playwright

github.com/chendefine/dsh-web-fetch-playwright

能力发起网络请求写入文件清单可疑

一个 DeepSeek Harness (DSH) 插件,为内置的 web_fetch 工具提供 Playwright/CDP 后端:页面在真实浏览器中渲染,经 Readability + DOMPurify + Turndown + GFM 去噪,并以 Markdown 返回。

作者原文(英文)

A DeepSeek Harness (DSH) plugin that gives the built-in web_fetch tool a Playwright/CDP backend: pages are rendered in a real browser, denoised with Readability + DOMPurify + Turndown + GFM, and returned as Markdown.

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

deepseek-harnessdshdsh-plugincordisplaywrightcdpweb-fetchfetch-provider
认证 L3已扫描 ✓健康 S/100周下载 926
7 项能力
许可
MIT
发布
2026-10-08
维护者
chendefine
插件 ID
2780

安装命令

dsh plugin --profile web add dsh-web-fetch-playwright@0.2.11

已试装 · 层已挂载

已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。

检测报告

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

能力清单

  • 发起网络请求network需留意8 处命中
    • lib/index.js:57* provider consumes per fetch. Validation goes through the schema, so the
    • lib/index.js:442* stay for the next fetch.
    • lib/index.js:924* Resolve the local Playwright backend for one fetch.
    • lib/index.js:1241* nothing — they never outlive their fetch. In-flight CDP fetches keep
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 写入文件writes-files需留意1 处命中
    • package.json:34"build": "node -e \"require('node:fs').rmSync('lib',{recursive:true,force:true})\" && tsc -p tsconfig.build.json --emitD…
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 清单可疑manifest-obfuscation需留意1 处命中
    • 安装脚本:prepare
    • 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
  • 读取文件reads-files一般10 处命中
    • lib/index.js:868if (!statSync(candidate).isFile()) continue;
    • lib/index.js:882head = readFileSync(path).subarray(0, 4);
    • lib/index.js:896let dir = statSync(start).isDirectory() ? start : dirname(start);
    • lib/index.js:903const pkg = JSON.parse(readFileSync(manifest, "utf8"));
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 动态加载模块dynamic-import一般10 处命中
    • lib/index.js:919return await import(pathToFileURL(entry).href);
    • lib/index.js:978const chromium = (await import("playwright-core")).chromium;
    • lib/types/client/card.d.ts:26export declare function PlaywrightCard(props: PlaywrightCardProps): string | import("react").JSX.Element | null;
    • lib/types/client/fields.d.ts:28}): import("react").JSX.Element;
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 接触凭据或密钥credentials一般3 处命中
    • lib/index.js:1196if (url.username.length > 0 || url.password.length > 0) throw new WebError("credentials in URLs are not allowed", "WEB_B…
    • package.json:79"apiKeys": [],
    • src/provider.ts:258if (url.username.length > 0 || url.password.length > 0) {
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取环境变量reads-env一般2 处命中
    • lib/index.js:863const pathValue = process.env.PATH ?? "";
    • src/playwright-resolve.ts:51const pathValue = process.env.PATH ?? ''
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
能力标识关注度命中次数
发起网络请求network需留意8
写入文件writes-files需留意1
清单可疑manifest-obfuscation需留意1
读取文件reads-files一般10
动态加载模块dynamic-import一般10
接触凭据或密钥credentials一般3
读取环境变量reads-env一般2

这份报告的口径

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

可信度

100 健康分 S 扣分项下方逐条附证据
  • 0没有可扣分的项

认证等级 L3

  • L0静态结构与契约✓sha512-jLbud+Bimt2vEfmj… 与本地 tarball 复算一致,补丁与入口齐备
  • L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
  • L2隔离沙箱冒烟✓隔离 profile 安装成功,2.7s,层已挂载;宿主带它启动(rendered)
  • L3运行时健康监控✓抽样会话内未观测到外部进程 / 越界写 / 外连(2 个事件)
评分口径与作者信息

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

维护者
chendefine
仓库
https://github.com/chendefine/dsh-web-fetch-playwright
许可
MIT
最后发布
2026-10-08
周下载
926
star
8

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

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

DSH peer 依赖2 个cordisdsh-web均为 @deepseek-ai/ 下的包
Node 要求>=20
第三方依赖7 个
bundle patch./cordis.patch.yml
依赖安全公告21 条,见下方

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

等级依赖包编号摘要
严重dompurifyCVE-2026-41239DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode
修复版本:3.4.0 详情
中dompurifyCVE-2026-65902DOMPurify: Hook mutation of `data.allowedTags` / `data.allowedAttributes` permanently pollutes `DEFAULT_ALLOWED_TAGS` / `DEFAULT_ALLOWED_ATTR`
修复版本:3.4.7 详情
中dompurifyCVE-2026-49458DOMPurify: Cross-realm IN_PLACE sanitization leaves executable markup intact via realm-bound `instanceof` checks
修复版本:3.4.6 详情
中dompurifyCVE-2026-49459DOMPurify: IN_PLACE mode preserves attributes of a clobbered root element, allowing XSS via attacker-controlled root DOM
修复版本:3.4.6 详情
中dompurifyCVE-2026-0540DOMPurify contains a Cross-site Scripting vulnerability
修复版本:2.5.9, 3.3.2 详情
中dompurifyCVE-2025-15599DOMPurify contains a Cross-site Scripting vulnerability
修复版本:3.2.7 详情
中dompurifyCVE-2026-41238DOMPurify: Prototype Pollution to XSS Bypass via CUSTOM_ELEMENT_HANDLING Fallback
修复版本:3.4.0 详情
未分级dompurifyCVE-2026-65903DOMPurify's ADD_TAGS function form bypasses FORBID_TAGS due to short-circuit evaluation
修复版本:3.4.0 详情
未分级dompurifyCVE-2026-75838DOMPurify: IN_PLACE hook removal leaves a detached subtree executable, causing XSS
修复版本:3.4.13 详情
未分级dompurifyCVE-2026-109345DOMPurify: IN_PLACE returns a force-removed rawtext root whose text carries attacker markup — pure HTML reparse executes
修复版本:3.4.16 详情
未分级dompurifyCVE-2026-66010DOMPurify: `CUSTOM_ELEMENT_HANDLING` bypasses `afterSanitizeElements` for allowed custom elements.
修复版本:3.4.12 详情
未分级dompurifyCVE-2026-65913DOMPurify USE_PROFILES prototype pollution allows event handlers
修复版本:3.3.2 详情

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

元数据

主页https://github.com/chendefine/dsh-web-fetch-playwright#readme
仓库最近提交2026-10-08
仓库创建2026-08-21

返回首页