fix(security): 修复 CLI glob 的 brace-expansion 风险 - #417
Merged
Conversation
Contributor
Author
自动化审阅(2026-08-05)未发现阻断问题(P0/P1/P2 均无 actionable finding)。
残余风险:brace-expansion 1.x/2.x 旧链及其他 high 仍由 Issue #414 分链跟踪;它们不属于本 PR 的 5.x 闭包范围。此评论不构成 approve。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
npm 审计新增
GHSA-rgw5-rvv9-x895:packages/cli → glob@11.1.0 → minimatch@10.2.6 → brace-expansion@5.0.8仍受影响;修复版本为>=5.0.9。该路径属于已由 #416 确认的 CLI glob 链。改动
pnpm-lock.yaml:brace-expansion 5.0.8 → 5.0.9;随同一glob → path-scurry闭包刷新lru-cache 11.5.1 → 11.5.2。验证
corepack pnpm install --frozen-lockfilecorepack pnpm workflow:checkcorepack pnpm ci:verifycorepack pnpm empbuildcorepack pnpm audit --prod --json:high24 → 23,移除上述brace-expansion@5高危路径。风险与回滚
其余 high 风险来自 Stylus、ESLint、Vue2、Rsdoctor 等独立链,仍由 #414 跟踪。若出现解析/构建回归,revert 本 PR 的单一锁文件提交即可。
关联 Issue: #414