D

dsh-waifu

@thewaifu/dsh-waifu

v1.5.19 界面与主题 可执行外部程序写入文件发起网络请求

在你使用的 profile 中安装该包。在 `web` 中安装并不会自动在 `tui` 中启用它,在 `tui` 中安装也不会改变 WebUI。

作者原文(英文)

Waifu desktop companion and replaceable WebUI skins for DeepSeek Harness

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

deepseek-harnessdsh-pluginwaifucompaniondesktop-companionwebuiskintheme
分类
ui
发布
2026-09-29
版本
v1.5.19

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注4 处命中
    • lib/electronBinary.js:2import { execFile, spawn } from 'node:child_process';
    • lib/macosApp.js:2import { execFile as execFileCallback } from 'node:child_process';
    • lib/openExternal.js:2import { execFile } from 'node:child_process';
    • lib/runtime.js:2import { spawn } from 'node:child_process';
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 写入文件writes-files需留意10 处命中
    • lib/macosApp.js:27await rename(resolve(targetContents, 'MacOS', basename(electronExecutable)), targetExecutable);
    • lib/macosApp.js:28await copyFile(iconPath, resolve(targetContents, 'Resources/dsh-waifu.png'));
    • lib/modelVault.js:33rmSync(root, { recursive: true, force: true });
    • lib/modelVault.js:47mkdirSync(dirname(destination), { recursive: true, mode: 0o700 });
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意3 处命中
    • …r/vendor/live2dcubismcore.min.js:9var Live2DCubismCore;!function(Live2DCubismCore){var _scriptDir,_csm=function(){function _csm(){}return _csm.getVersion=…
    • lib/renderer/vendor/pixi.min.js:8var PIXI=function(t){"use strict";var e=setTimeout;function r(t){return Boolean(t&&void 0!==t.length)}function i(){}func…
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 动态执行代码dynamic-code需留意2 处命中
    • …r/vendor/live2dcubismcore.min.js:9var Live2DCubismCore;!function(Live2DCubismCore){var _scriptDir,_csm=function(){function _csm(){}return _csm.getVersion=…
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 接触凭据或密钥credentials一般127 处命中
    • lib/gatewayAuth.js:4import { credentialRef } from '@deepseek-ai/dsh-credentials';
    • lib/gatewayAuth.js:9const ACCESS_TOKEN_SKEW_MS = 30_000;
    • lib/gatewayAuth.js:11export const WAIFU_DEVICE_CREDENTIALS = Object.freeze({
    • lib/gatewayAuth.js:12deviceId: credentialRef('WAIFU_DEVICE_ID'),
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取文件reads-files一般31 处命中
    • lib/catalog.js:18const parsed = JSON.parse(readFileSync(modelPath, 'utf8'));
    • lib/catalog.js:30if (!statSync(referencedMoc).isFile()) {
    • lib/catalog.js:42if (!statSync(referencedTexture).isFile()) {
    • lib/catalog.js:50if (!statSync(root).isDirectory())
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般10 处命中
    • lib/electronBinary.js:45const platform = process.env.ELECTRON_INSTALL_PLATFORM
    • lib/electronBinary.js:46?? process.env.npm_config_platform
    • lib/electronBinary.js:52const overriddenDist = process.env.ELECTRON_OVERRIDE_DIST_PATH;
    • lib/electronBinary.js:70cacheRoot: process.env.electron_config_cache,
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般2 处命中
    • scripts/verify-package.mjs:60const catalog = await import(new URL(`../lib/modelCatalog.js?verify=${Date.now()}`, import.meta.url))
    • lib/client-types/SkinPicker.d.ts:2export declare function SkinPicker({ t, useWaifuTheme, previews, setSkin }: SkinPickerProps): import("react").JSX.Elemen…
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注4
写入文件writes-files需留意10
发起网络请求network需留意3
动态执行代码dynamic-code需留意2
接触凭据或密钥credentials一般127
读取文件reads-files一般31
读取环境变量reads-env一般10
动态加载模块dynamic-import一般2

这份报告的口径

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

依赖安全公告

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

等级依赖包编号摘要
严重electronCVE-2026-102676Electron: <webview> can enable Node.js integration in Web Workers despite embedder restrictions
修复版本:41.10.6, 42.9.2, 43.4.1 详情 →
高electronCVE-2026-102677Electron: Sandboxed preload code cache can be poisoned by a compromised renderer
修复版本:42.10.0, 43.5.0, 44.0.0-beta.6 详情 →
高tarCVE-2026-26960Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction
修复版本:7.5.8 详情 →
中electronCVE-2026-102674Electron: Windows opened from a sandboxed top-level document do not inherit its sandbox restrictions
修复版本:41.10.6, 42.9.2, 43.4.1 详情 →
中electronCVE-2026-102675Electron: File and HTTP protocol handlers allow cross-origin reads without corsEnabled
修复版本:41.10.6, 42.9.2, 43.4.1 详情 →
中tarCVE-2026-59873node-tar: Decompression/parse DoS via unlimited input
修复版本:7.5.19 详情 →
中tarCVE-2026-24842node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal
修复版本:7.5.7 详情 →
中tarCVE-2026-59874node-tar: Negative tar entry size causes infinite loop in archive replace
修复版本:7.5.18 详情 →
中tarCVE-2026-73566node-tar: Uncontrolled recursion in mapHas/filesFilter allows uncatchable stack-overflow DoS via crafted long-path tar with member selection
修复版本:7.5.21 详情 →
中tarCVE-2026-23950Race Condition in node-tar Path Reservations via Unicode Ligature Collisions on macOS APFS
修复版本:7.5.4 详情 →
低tarCVE-2026-59875node-tar: Uncaught Exception DoS via NUL byte in PAX path/linkpath records
修复版本:7.5.17 详情 →
低tarCVE-2026-59871node-tar: Process crash via PAX numeric path type confusion
修复版本:7.5.18 详情 →

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

← 返回全部插件