dsh-web-fetch-playwright
github.com/chendefine/dsh-web-fetch-playwright
DeepSeek Harness(DSH)双端插件:为内置 `web_fetch` 工具提供 **Playwright/CDP 后端**——用真实浏览器渲染网页,经 **Readability + DOMPurify + Turndown + GFM** 降噪(清洗导航栏、侧边栏、页脚、贴片广告)后输出 Markdown。
作者原文(英文)
Playwright/CDP web-fetch provider for DeepSeek Harness: renders pages in a real browser, denoises them (Readability + DOMPurify), and returns markdown.
中文简介由 DeepSeek 模型翻译,仅供参考。
检测报告
能力清单
- 发起网络请求
network需留意8 处命中lib/index.js:57* provider consumes per fetch. Validation goes through the schema, so thelib/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 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
这个插件声明的依赖中,有 21 条已公开的安全公告 (最高等级:严重):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 严重 | dompurify | CVE-2026-41239 | DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode 修复版本:3.4.0 详情 → |
| 中 | dompurify | CVE-2026-65902 | DOMPurify: Hook mutation of `data.allowedTags` / `data.allowedAttributes` permanently pollutes `DEFAULT_ALLOWED_TAGS` / `DEFAULT_ALLOWED_ATTR` 修复版本:3.4.7 详情 → |
| 中 | dompurify | CVE-2026-49458 | DOMPurify: Cross-realm IN_PLACE sanitization leaves executable markup intact via realm-bound `instanceof` checks 修复版本:3.4.6 详情 → |
| 中 | dompurify | CVE-2026-49459 | DOMPurify: IN_PLACE mode preserves attributes of a clobbered root element, allowing XSS via attacker-controlled root DOM 修复版本:3.4.6 详情 → |
| 中 | dompurify | CVE-2026-0540 | DOMPurify contains a Cross-site Scripting vulnerability 修复版本:2.5.9, 3.3.2 详情 → |
| 中 | dompurify | CVE-2025-15599 | DOMPurify contains a Cross-site Scripting vulnerability 修复版本:3.2.7 详情 → |
| 中 | dompurify | CVE-2026-41238 | DOMPurify: Prototype Pollution to XSS Bypass via CUSTOM_ELEMENT_HANDLING Fallback 修复版本:3.4.0 详情 → |
| 未分级 | dompurify | CVE-2026-65903 | DOMPurify's ADD_TAGS function form bypasses FORBID_TAGS due to short-circuit evaluation 修复版本:3.4.0 详情 → |
| 未分级 | dompurify | CVE-2026-75838 | DOMPurify: IN_PLACE hook removal leaves a detached subtree executable, causing XSS 修复版本:3.4.13 详情 → |
| 未分级 | dompurify | CVE-2026-109345 | DOMPurify: IN_PLACE returns a force-removed rawtext root whose text carries attacker markup — pure HTML reparse executes 修复版本:3.4.16 详情 → |
| 未分级 | dompurify | CVE-2026-66010 | DOMPurify: `CUSTOM_ELEMENT_HANDLING` bypasses `afterSanitizeElements` for allowed custom elements. 修复版本:3.4.12 详情 → |
| 未分级 | dompurify | CVE-2026-65913 | DOMPurify USE_PROFILES prototype pollution allows event handlers 修复版本:3.3.2 详情 → |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。
可信度
- -20隔离环境装不上fail:_modules/@deepseek-ai/dsh/lib/bin.js:236:17) at async runDesktopCli (file:///C:/Users/72881/AppData/Local/Programs/DeepSeek%20Harness/resources/app.asar/dsh/nod
认证等级 L1
- L0内容完整性✓sha512-jLbud+Bimt2vEfmj… 与本地 tarball 复算一致
- L1来源✓维护者 chendefine,仓库 chendefine/dsh-web-fetch-playwright(未做仓库审计)
- L2发行—试装未通过(install-failed)
- L3生态—还没有契约/启动记录
- L4多方独立验证—本站不做第三方独立背书
评分口径与作者信息
从 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 只作参考,不参与评分。
认证等级核验的是这个包本身(内容指纹、来源、能否安装、声明是否属实);依赖漏洞是独立标注的,两者正交、不互相掩盖。可信 ≠ 无漏洞,上架 ≠ 推荐。
DSH