浏览全部

界面与主题 · v0.26.0

dsh-better-sidebar

github.com/omdsh-dev/DSH-better-sidebar

能力可执行外部程序以 shell 执行命令启动伪终端

[!IMPORTANT] v0.19.0 起接入 DSH 原生侧边栏:右列就是 DSH 自己的右侧栏,插件把每个 tab 类型注册为原生 tab(不再自绘右侧面板),只保留自绘的底部工作台与开放给所有插件的 ctx.betterSidebar 服务。

作者原文(英文)

Better Sidebar for DSH — file tree, editor, changes, tasks and side chat in one column, separate for every conversation. Also exposes a service other plugins use to register sidebar tabs and file viewers.

简介取自插件自己的 README 原文。

认证 L0已扫描 ✓健康 A/90周下载 57.6k
9 项能力
许可
MIT
发布
2026-10-13
维护者
huanlin、menghuan1918
插件 ID
1556

安装命令

dsh plugin --profile web add dsh-better-sidebar@0.26.0

强装可用 · 需绕过门禁

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

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注4需留意3一般15未命中
高关注需留意一般

能力清单

  • 可执行外部程序spawns-processes高关注8 处命中
    • lib/index.js:6import { execFileSync, spawn } from "node:child_process";
    • lib/types/archive-tools.d.ts:33import { spawn } from 'node:child_process';
    • src/archive-tools.ts:33import { spawn } from 'node:child_process'
    • src/git.ts:16import { spawn } from 'node:child_process'
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注2 处命中
    • lib/index.js:3524const translated = execFileSync("/usr/bin/wslpath", [mode, value], { encoding: "utf8" }).trim();
    • src/open-external.ts:74const translated = execFileSync('/usr/bin/wslpath', [mode, value], { encoding: 'utf8' }).trim()
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 启动伪终端spawns-pty需留意51 处命中
    • README_EN.md:88> The plugin depends on no package that needs a build script (the terminal and `node-pty` went back to DSH wholesale), s…
    • README_EN.md:119| `Ignored build scripts` | pnpm 11 blocked a **transitive** dependency's build script. Run `pnpm approve-builds` (no `-…
    • README_EN.md:124| Terminal unusable / shell fails to start | The terminal comes from **DSH's own `ui-sidebar-terminal`** (this plugin no…
    • README_EN.md:177| **💻 Terminal (provided by DSH)**<br/><sub>The right-Sidebar terminal is provided by DSH's own `ui-sidebar-terminal`: s…
    • 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
  • 写入文件writes-files需留意34 处命中
    • lib/index.js:1953await mkdir(dirname(safeTarget), { recursive: true });
    • lib/index.js:1972await rename(tmp, safeTarget);
    • lib/index.js:2016await mkdir(dirname(absolute), { recursive: true });
    • lib/index.js:2017await writeFile(tmp, encodeText(restoreEol(content, eol), encoding), { flag: "wx" });
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意10 处命中
    • src/client/api.ts:240response = await fetch(hostRouteUrl(`sidebar/api/${method}`).href, {
    • src/client/api.ts:293response = await fetch(hostRouteUrl(`sidebar/upload?${params.toString()}`).href, {
    • src/client/api.ts:333response = await fetch(hostRouteUrl(`sidebar/write?${params.toString()}`).href, {
    • src/client/chunk-loader.ts:223const res = await fetch(CHUNK_URL(name), {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • R011 客户端可疑脚本client-side-risk需留意3 处命中
    • use-dir-watch.ts: postMessage 无 origin 校验; use-host-feeds.ts: postMessage 无 origin 校验
    • 浏览器侧代码能改你看到的界面。确认改动范围符合插件用途。
  • 动态加载模块dynamic-import一般49 处命中
    • …pes/client/add-plugin-modal.d.ts:9}): import("react").JSX.Element;
    • …pes/client/add-plugin-modal.d.ts:15}): import("react").JSX.Element;
    • …s/client/changes/ChangesTab.d.ts:5export declare function ChangesTab({ ctx, store, scope, tab, visible, onOpenFile, onOpenDiff }: TabComponentProps): impo…
    • lib/types/client/chunk-loader.d.ts:5* The platform externals a chunk bundle may require (mirror of
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 读取环境变量reads-env一般26 处命中
    • lib/index.js:314...process.env,
    • lib/index.js:2259const SEARCH_DEBUG = process.env.DSH_SEARCH_DEBUG === "1";
    • lib/index.js:2260const LOG_FILE = join(process.env.DSH_HOME !== void 0 && process.env.DSH_HOME.trim() !== "" ? process.env.DSH_HOME : joi…
    • lib/index.js:2360const env = process.env;
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 读取文件reads-files一般23 处命中
    • lib/index.js:483const entries = await readdir(cwd, { withFileTypes: true }).catch(() => []);
    • lib/index.js:992* deliberately allocation-shy: one `readdir(withFileTypes)` call (no
    • lib/index.js:1100dirents = await readdir(path, { withFileTypes: true });
    • lib/index.js:1303mtimeMs = statSync(metaFile).mtimeMs;
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注8
以 shell 执行命令shell-exec高关注2
启动伪终端spawns-pty需留意51
写入文件writes-files需留意34
发起网络请求network需留意10
R011 客户端可疑脚本client-side-risk需留意3
动态加载模块dynamic-import一般49
读取环境变量reads-env一般26
读取文件reads-files一般23

这份报告的口径

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

可信度

90 健康分 A 扣分项下方逐条附证据
  • -5cordis entry id「better-sidebar」被 2 个包共用,同时安装会互相替换warn:dsh-coding-sidebar
  • -5目录内 peer @huanlin/dsh-plugin-better-locale 的版本范围不覆盖已发布版本warn:^0.1.0 vs 0.4.3

认证等级 L0

  • L0静态结构与契约✓sha512-tjWdPvvOgSeHvtPe… 与本地 tarball 复算一致,补丁与入口齐备
  • L1配置组合与依赖图—entry id better-sidebar 被 2 个包共用;目录内 peer @huanlin/dsh-plugin-better-locale 的版本范围 ^0.1.0 不覆盖已发布 0.4.3
  • L2隔离沙箱冒烟—试装未通过(forced-ok)
  • L3运行时健康监控—运行时观测到异常:install:blocked-by-version-gate
评分口径与作者信息

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

维护者
huanlin、menghuan1918
仓库
https://github.com/omdsh-dev/DSH-better-sidebar
许可
MIT
最后发布
2026-10-13
周下载
57.6k
star
4194

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

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

DSH peer 依赖15 个cordisdsh-agentdsh-client-localedsh-client-ui-conversationdsh-client-ui-primitivesdsh-client-ui-settingsdsh-client-ui-sidebar-rightdsh-client-ui-slotsdsh-host-webserverdsh-invariantsdsh-llmdsh-session等 15 个均为 @deepseek-ai/ 下的包
Node 要求>=20
第三方依赖33 个
bundle patch./cordis.patch.yml
依赖安全公告36 条,见下方

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

等级依赖包编号摘要
严重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 详情
中wsCVE-2026-45736ws: Uninitialized memory disclosure
修复版本:8.20.1 详情
中wsCVE-2026-48779ws: Memory exhaustion DoS from tiny fragments and data chunks
修复版本:5.2.5, 6.2.4, 7.5.11 详情
中yamlCVE-2023-2251Uncaught Exception in yaml
修复版本:2.2.2 详情
低mermaidCVE-2026-41150Mermaid Gantt Charts are vulnerable to an Infinite Loop DoS
修复版本:10.9.6, 11.15.0 详情
低yamlCVE-2026-33532yaml is vulnerable to Stack Overflow via deeply nested YAML collections
修复版本:1.10.3, 2.8.3 详情

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

元数据

仓库最近提交2026-10-15
仓库创建2026-08-07

返回首页