Skip to content

fix(deps): 修复可兼容升级的依赖安全告警(undici/vite/tar)#116

Merged
huhamhire merged 2 commits into
devfrom
fix/dependabot-security
Jun 23, 2026
Merged

fix(deps): 修复可兼容升级的依赖安全告警(undici/vite/tar)#116
huhamhire merged 2 commits into
devfrom
fix/dependabot-security

Conversation

@huhamhire

Copy link
Copy Markdown
Owner

背景

处理 GitHub Dependabot 告警(security/dependabot)。

规则

只升级我们直接声明的依赖、或上游父依赖已允许的兼容(非破坏性)版本;传递依赖若上游未发布兼容修复,不用 overrides 强行改写,保留告警待上游更新(必要时 dismiss)。npm audit fix(非 --force)即此规则的工具化。

改动(仅 lockfile)

npm audit fix(非 --force)应用的兼容安全补丁:

升级 清除告警
undici(直接) 6.26.0 → 6.27.0 6.x 系(<=6.26.0
undici(@electron/get 传递) 7.28.0 7.x 系(<7.28.0,high)
vite 7.3.5 high + moderate
tar 7.5.16 moderate

注:本批最初尝试把直接 undici 合并升到 7.x,但 6.27.0 已清掉全部 undici 告警、无需引入跨大版本(Node 内置 fetch 仍是 undici v6)的 ProxyAgent dispatcher 顾虑,故回退保留 6.x 的既有代理实现。

暂不处理(无兼容上游修复,仅 major 父升级可解 → 按规则保留)

详见下方「剩余告警清单」。均为 dev / 构建期或沙箱渲染层的传递依赖,待上游发布兼容修复后再随父升级。

测试

lint / typecheck / test / build 四关通过。

🤖 Generated with Claude Code

huhamhire and others added 2 commits June 23, 2026 17:35
npm audit fix(非 --force)仅应用上游父依赖已允许的兼容升级:undici 6.27.0
(直接,修 6.x 告警)+ 7.28.0(@electron/get 传递)、vite 7.3.5、tar 7.5.16。
清掉对应 Dependabot 告警(undici/vite/tar)。仅 lockfile 变更。

余下 dompurify(monaco) / form-data+tmp(nx) / js-yaml(gray-matter) / esbuild(vite 锁 ^0.27)
均无兼容上游修复(仅 major 父升级可解),按既定规则暂不强升、保留告警。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
litellm 对未进本地 model_cost 表的新模型(如 claude-opus-4-8)在 cost/token 计量里
get_llm_provider 解析失败时,会先把红字「Provider List: …」print 到 stdout 再抛错
(错误被上游吞掉、不影响结果);编排 chat 通道以子进程 stdout 作模型回复,该 print 漏进了
评审总结正文。patch 时置 litellm.suppress_debug_info=True 关掉这些 print(正是该段的开关),
全局生效、与版本无关,放在版本守卫/CLI 分支之前。docs/arch/04 同步说明。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@huhamhire huhamhire added the enhancement New feature or request label Jun 23, 2026
@huhamhire huhamhire merged commit f6ba578 into dev Jun 23, 2026
1 check passed
@huhamhire huhamhire deleted the fix/dependabot-security branch June 23, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant