D

dsh-coding-sidebar

github.com/kkutysllb/dsh-coding-sidebar

v1.0.40 界面与主题 可执行外部程序启动伪终端发起网络请求

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

该插件尚未翻译,显示作者原文。

分类
ui
发布
2026-10-07
版本
v1.0.40

检测报告

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

能力清单

  • 可执行外部程序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 module
    • lib/index.js:2691* skipping node-pty's install script, a pruned store entry, a failed
    • lib/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) succeeds
    • lib/index.js:718await rename(absolute, safeDestination);
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • R013 清单可疑manifest-obfuscation需留意1 处命中
    • 安装脚本: prepare
    • 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
  • 接触凭据或密钥credentials一般55 处命中
    • src/client/browser-nav.ts:200const FAILURE_REASONS = new Set<string>(['empty', 'invalid', 'scheme', 'credentials', 'app-origin'])
    • lib/types/client/browser.d.ts:9* a local dev server next to the conversation); no embedded credentials; the
    • lib/types/client/browser.d.ts:15export type BrowserFailureReason = 'empty' | 'invalid' | 'scheme' | 'credentials' | 'app-origin';
    • src/client/browser.ts:9* a local dev server next to the conversation); no embedded credentials; the
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 动态加载模块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() only
    • lib/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 都读走。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注4
启动伪终端spawns-pty需留意91
发起网络请求network需留意28
写入文件writes-files需留意23
R013 清单可疑manifest-obfuscation需留意1
接触凭据或密钥credentials一般55
动态加载模块dynamic-import一般54
读取文件reads-files一般49
读取环境变量reads-env一般20

这份报告的口径

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

依赖安全公告

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

等级依赖包编号摘要
高xlsxCVE-2023-30533Prototype Pollution in sheetJS 详情 →
中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 详情 →
中xlsxCVE-2024-22363SheetJS Regular Expression Denial of Service (ReDoS) 详情 →
低mermaidCVE-2026-41150Mermaid Gantt Charts are vulnerable to an Infinite Loop DoS
修复版本:10.9.6, 11.15.0 详情 →
未分级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-109344DOMPurify: IN_PLACE: node-removing afterSanitize hook leaves detached subtree event handlers armed, causing DOM XSS
修复版本:3.4.16 详情 →
未分级mermaidCVE-2026-71436Mermaid XY Charts are vulnerable to an infinite loop DoS
修复版本:10.9.8, 11.16.1 详情 →
未分级mermaidCVE-2026-71437Mermaid Architecture diagrams are vulnerable to prototype pollution
修复版本:11.16.1 详情 →
未分级mermaidCVE-2026-50159Mermaid allows CSS injection applying to sibling elements of the diagram
修复版本:10.9.8, 11.16.1 详情 →
未分级mermaidCVE-2025-54881Mermaid improperly sanitizes sequence diagram labels leading to XSS
修复版本:10.9.4, 11.10.0 详情 →
未分级mermaidCVE-2026-41159Mermaid: Improper sanitization of configuration leads to CSS injection
修复版本:10.9.6, 11.15.0 详情 →

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

← 返回全部插件