D

dsh-theme-gallery

github.com/Xuanyi-king/dsh-theme-gallery

v0.3.21 界面与主题 写入文件发起网络请求

一个插件,十一款主题。安装后在 DeepSeek Harness 的左侧「主题」中心中随时切换,也可以选「跟随 DSH」恢复默认;选中的主题在关闭并重新打开 DSH 后仍会保留。

作者原文(英文)

DeepSeek Harness theme center with eleven themes and safe update checks

中文简介由 DeepSeek 模型翻译,仅供参考。

dshdeepseek-harnessdsh-plugindsh-bundlethemethemescordis
分类
ui
发布
2026-10-11
版本
v0.3.21

检测报告

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

能力清单

  • 写入文件writes-files需留意5 处命中
    • lib/selection-route.js:43await mkdir(dirname(file), { recursive: true });
    • lib/selection-route.js:45await writeFile(temporary, `${JSON.stringify({ themeId })}\n`, { mode: 0o600 });
    • lib/selection-route.js:46await rename(temporary, file);
    • lib/update-core.js:139if (create) await mkdir(directory, {mode:0o700}).catch(error => {if(error.code !== 'EEXIST') throw error});
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意4 处命中
    • lib/update-host.js:69async fetch(request){
    • lib/update-host.js:116for(const operation of ['info','check','preflight','backup','verify']) host.effect(()=>host.connection.fetch.register({p…
    • …s/THEME-CENTER-UPGRADE-DESIGN.md:22| HTTP 安全 | [packages/client/connection/src/index.ts](https://github.com/deepseek-ai/deepseek-harness/blob/dsh-v0.2.1-al…
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 读取文件reads-files一般8 处命中
    • lib/selection-route.js:33const parsed = JSON.parse(await readFile(pathFor(home), 'utf8'));
    • lib/update-core.js:148try {const text=await readFile(await ownedPath(home,'selection.json'),'utf8');if(Buffer.byteLength(text)>65536)throw Err…
    • lib/update-core.js:152const text=await readFile(await ownedPath(home,`${id}.json`),'utf8');if(Buffer.byteLength(text)>200000)throw Error('base…
    • lib/update-host.js:16const optionalRead = async path => {try{return await readFile(path,'utf8')}catch(e){if(e.code==='ENOENT')return null;thr…
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般1 处命中
    • lib/selection-route.js:10const pathFor = (home = process.env.DSH_HOME || join(homedir(), '.dsh')) => join(home, 'dsh-theme-gallery', 'selection.j…
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般1 处命中
    • lib/update-host.js:30const boot=await import(pathToFileURL(require.resolve('@deepseek-ai/dsh-app-boot')).href);
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
写入文件writes-files需留意5
发起网络请求network需留意4
读取文件reads-files一般8
读取环境变量reads-env一般1
动态加载模块dynamic-import一般1

这份报告的口径

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

依赖安全公告

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

等级依赖包编号摘要
中js-yamlCVE-2026-84375js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources
修复版本:3.15.2, 4.3.2 详情 →
中js-yamlCVE-2026-59869js-yaml: YAML merge-key chains can force quadratic CPU consumption
修复版本:3.15.0, 4.3.0 详情 →
中js-yamlGHSA-5p4m-2wfm-xmqjJS-YAML: Quadratic CPU consumption in !!omap resolution (3.x and 4.x) — CVE-2026-59870 fix not backported
修复版本:3.15.1, 4.3.1 详情 →
中semverCVE-2022-25883semver vulnerable to Regular Expression Denial of Service
修复版本:5.7.2, 6.3.1, 7.5.2 详情 →
低js-yamlCVE-2026-53550JS-YAML: Quadratic-complexity DoS in merge key handling via repeated aliases
修复版本:3.15.0, 4.2.0 详情 →
低js-yamlCVE-2025-64718js-yaml has prototype pollution in merge (<<)
修复版本:3.14.2, 4.1.1 详情 →
低js-yamlGHSA-r3ph-w7gj-g6xmjs-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources
修复版本:5.4.1 详情 →

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

← 返回全部插件