Skip to content

fix(deps): resolve Dependabot advisories - #246

Merged
Windsander merged 2 commits into
mainfrom
security/dependabot-cleanup
Oct 24, 2026
Merged

Windsander merged 2 commits into
mainfrom
security/dependabot-cleanup

Conversation

@Windsander

Copy link
Copy Markdown
Owner

fix(deps): resolve Dependabot advisories

背景

独立安全清理,不改变 v0.1.0 已发布内容。基线 origin/main@38b7e43。

当前 12 条 open Dependabot alerts 分类结果:

  • 真正 shipped:0。@mebular/core 的发布依赖与桌面 lock 当前均无 shipped vulnerability。
  • 7 条桌面 / dev alerts 为 stale:Electron 42.11.18、undici 7.30.1/6.29.1、fast-uri 3.1.9 均已在受影响范围外;等 Dependabot 下次扫描自动关闭,不手动 dismiss。
  • 5 条 root alerts 来自 DSH peer tree:
    • nested zod 4.4.3 in @deepseek-ai/dsh-llm / dsh-sandbox-policy / dsh-session-projection
    • undici 8.11.2 in @deepseek-ai/dsh-http-proxy
    • @modelcontextprotocol/client 2.2.0 in dsh-mcp-client

修复

package.json 增加 5 条最小范围 override:

  • @deepseek-ai/dsh-llm -> zod: 4.6.7
  • @deepseek-ai/dsh-sandbox-policy -> zod: 4.6.7
  • @deepseek-ai/dsh-session-projection -> zod: 4.6.7
  • @deepseek-ai/dsh-http-proxy -> undici: 8.12.3
  • @deepseek-ai/dsh-mcp-client -> @modelcontextprotocol/client: 2.4.0

package-lock.json 只做对应最小变更。新增 docs/operations/DEPENDENCY_OVERRIDES.md 记录路径、兼容性、shipped 范围与移除条件。

边界

  • 这些 DSH 依赖不进入 Mebular npm 包 tarball 或桌面 runtime。
  • npm 会忽略已安装依赖声明的 overrides,因此 root override 不能修复 DSH host 用户侧;上游 @deepseek-ai/dsh-mcp-client 仍需在后续版本提升其固定依赖。已在文档记录。
  • 不改变已发布的 v0.1.0 包或 Release 资产。

验证

  • npm ci:通过
  • npm run build:通过
  • npm run lint:通过
  • npm run verify:dsh-plugin:129/129
  • npm test -- --runInBand tests/dsh tests/desktop:14 suites / 316 tests
  • npm run test:coverage:185 suites / 1739 tests
  • npm audit --omit=dev(root):0
  • npm audit(root):0
  • npm audit(apps/desktop):0
  • check:deps / check:docs / check:cleanliness:通过

合并时机

v0.1.0 已发布完成;本 PR 可独立评审/合并。合并后观察 Dependabot 扫描,7 条 stale 告警应自动关闭;DSH host 侧风险保留为上游依赖事项。

Override three packages pinned to vulnerable versions by the
@deepseek-ai/dsh-mcp-client peer tree:

- zod 4.4.3 -> 4.6.7 (GHSA-mrhx-c7xc-m3w5) under dsh-llm,
  dsh-sandbox-policy and dsh-session-projection
- undici 8.11.2 -> 8.12.3 (GHSA-xjj6-f33q-929c, GHSA-4qv8-2p9j-2685,
  GHSA-f72v-6w45-q472) under dsh-http-proxy
- @modelcontextprotocol/client 2.2.0 -> 2.4.0 (GHSA-6prh-2h8m-c8cw)
  under dsh-mcp-client

The replacements keep the APIs these packages use and dedupe onto versions
already present in the workspace. These are dev/CI-only DSH peer
dependencies: they are not part of the published @mebular/core tarball or
the desktop artifact. Root and desktop npm audit now report 0.

Refs: Windsander/Mebular Dependabot alerts 80, 81, 92, 93, 94.
Record each root override, the vulnerable transitive path it replaces, the
advisory, compatibility evidence, shipped scope, and the upstream versions
that allow removing it.

Refs: Windsander/Mebular Dependabot alerts 80, 81, 92, 93, 94.
@Windsander
Windsander merged commit f56baea into main Oct 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant