界面与主题 · v1.0.40
dsh-coding-sidebar
dsh-coding-sidebar 是面向 DSH Web 的右侧编码工作台插件,也作为 QiLin Web 的第一方内置工作台使用。
作者原文(英文)
DSH web plugin: a VSCode-like right sidebar (explorer / editor / terminal / git / browser), isolated per conversation session. Exposes the betterSidebar service for other plugins to register sidebar tabs and file viewers. KCoder-maintained fork of DSH-bet
简介取自插件自己的 README 原文。
安装命令
dsh plugin --profile web add dsh-coding-sidebar@1.0.40
试装需批准构建脚本
安装过程会执行依赖的构建脚本,pnpm 默认拒绝执行这类脚本,需要人工批准后才能继续。本站不在无人值守的检查里替你批准。
检测报告
能力清单
- 可执行外部程序
spawns-processes高关注4 处命中lib/index.js:10import { spawn } from "node:child_process";src/git.ts:14import { spawn } from 'node:child_process'src/github.ts:20import { spawn } from 'node:child_process'src/open-external.ts:13import { spawn } from 'node:child_process'- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 启动伪终端
spawns-pty需留意91 处命中lib/index.js:2686* node-pty dependency loading for the host half (issue #140, plugin side).lib/index.js:2689* node-pty, but the package must NEVER be imported statically at modulelib/index.js:2691* skipping node-pty's install script, a pruned store entry, a failedlib/index.js:2696* Instead the host half loads node-pty lazily (synchronously, via- 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
- 发起网络请求
network需留意28 处命中lib/index.js:5924const res = await fetch("http://127.0.0.1:9223/json/list", { signal: AbortSignal.timeout(3e3) });lib/index.js:5944let response = await fetch(parsed, {lib/index.js:5951response = await fetch(parsed, {lib/index.js:5958if (!(response.headers.get("content-security-policy") !== null || response.headers.get("x-frame-options") !== null) && !…- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 写入文件
writes-files需留意23 处命中lib/index.js:631await mkdir(dirname(safeTarget), { recursive: true });lib/index.js:653await rename(tmp, safeTarget);lib/index.js:703* renames the link, not its target. A no-op rename (same name) succeedslib/index.js:718await rename(absolute, safeDestination);- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- R013 清单可疑
manifest-obfuscation需留意1 处命中- 安装脚本: prepare
- 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
- 动态加载模块
dynamic-import一般54 处命中lib/types/client/BrowserView.d.ts:16export declare function BrowserView(props: TabComponentProps): import("react").JSX.Element;lib/types/client/BrowserView.d.ts:28}): import("react").JSX.Element;lib/types/client/chunk-loader.d.ts:15* through window.__ModuleLoader__.load — the module loader's import() onlylib/types/client/chunk-loader.d.ts:25* `__DSH_MODULES__.import(spec)` — the seed-word branch, the one part of- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取文件
reads-files一般49 处命中lib/index.js:354const dirents = await readdir(path, { withFileTypes: true }).catch((error) => {lib/index.js:1070sendFile(() => createReadStream(path), {lib/index.js:1086const stream = createReadStream(path, {lib/index.js:1218const etag = `"${shortHash(await readFile(path))}"`;- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般20 处命中lib/index.js:1382if (platform === "win32") return [join(process.env["ProgramFiles"] ?? "C:\\Program Files"), join(process.env["LOCALAPPDA…lib/index.js:1583...process.env,lib/index.js:2790const home = process.env.DSH_HOME !== void 0 && process.env.DSH_HOME.trim() !== "" ? process.env.DSH_HOME : join(homedir…lib/index.js:2965env: { ...process.env }- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 接触凭据或密钥
credentials一般1 处命中src/client/browser.ts:96if (url.username !== '' || url.password !== '') return { kind: 'blocked', reason: 'credentials' }- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 4 |
| 启动伪终端 | spawns-pty | 需留意 | 91 |
| 发起网络请求 | network | 需留意 | 28 |
| 写入文件 | writes-files | 需留意 | 23 |
| R013 清单可疑 | manifest-obfuscation | 需留意 | 1 |
| 动态加载模块 | dynamic-import | 一般 | 54 |
| 读取文件 | reads-files | 一般 | 49 |
| 读取环境变量 | reads-env | 一般 | 20 |
| 接触凭据或密钥 | credentials | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 299 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
可信度
- -5需要批准构建脚本才能装(本站不代跑第三方代码)warn
- -5cordis entry id「better-sidebar」被 2 个包共用,同时安装会互相替换warn:dsh-better-sidebar
- -5目录内 peer @huanlin/dsh-plugin-better-locale 的版本范围不覆盖已发布版本warn:^0.1.0 vs 0.4.3
认证等级 L0
- L0静态结构与契约✓sha512-IJ5yGSln2HUJUtku… 与本地 tarball 复算一致,补丁与入口齐备
- L1配置组合与依赖图—entry id better-sidebar 被 2 个包共用;目录内 peer @huanlin/dsh-plugin-better-locale 的版本范围 ^0.1.0 不覆盖已发布 0.4.3
- L2隔离沙箱冒烟—需要批准构建脚本——本站不代跑第三方代码
- L3运行时健康监控—未抽样(本层是抽样检测:没有会话不等于干净)
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- kkutysllb
- 仓库
- https://github.com/kkutysllb/dsh-coding-sidebar
- 许可
- MIT
- 最后发布
- 2026-10-07
- 周下载
- 285
- star
- 0
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。
| DSH peer 依赖 | 12 个cordisdsh-agentdsh-client-localedsh-client-ui-conversationdsh-client-ui-primitivesdsh-client-ui-settingsdsh-client-ui-slotsdsh-host-webserverdsh-llmdsh-sessiondsh-subagentdsh-tools均为 @deepseek-ai/ 下的包 |
|---|---|
| Node 要求 | >=20 |
| 第三方依赖 | 34 个 |
| bundle patch | ./cordis.patch.yml |
| 依赖安全公告 | 36 条,见下方 |
这个插件声明的依赖中,有 36 条已公开的安全公告 (最高等级:严重):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 严重 | dompurify | CVE-2026-41239 | DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode 修复版本:3.4.0 详情 |
| 高 | xlsx | CVE-2023-30533 | Prototype Pollution in sheetJS 详情 |
| 中 | 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 详情 |
| 中 | ws | CVE-2026-45736 | ws: Uninitialized memory disclosure 修复版本:8.20.1 详情 |
| 中 | ws | CVE-2026-48779 | ws: Memory exhaustion DoS from tiny fragments and data chunks 修复版本:5.2.5, 6.2.4, 7.5.11 详情 |
| 中 | xlsx | CVE-2024-22363 | SheetJS Regular Expression Denial of Service (ReDoS) 详情 |
| 低 | mermaid | CVE-2026-41150 | Mermaid Gantt Charts are vulnerable to an Infinite Loop DoS 修复版本:10.9.6, 11.15.0 详情 |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。
元数据
| 主页 | https://github.com/kkutysllb/dsh-coding-sidebar#readme |
|---|---|
| 仓库最近提交 | 2026-10-08 |
| 仓库创建 | 2026-09-01 |
DSH