@workflow/web 5.0.7 server build inlines brace-expansion 5.0.6 (via @vercel/queue → minimatch)

未关闭
#5,210 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript

调研方向

The vulnerable copy is brace-expansion 5.0.6, pulled in through @vercel/queue and minimatch 10.2.5, and it ends up inlined in the @workflow/web build output build/server/assets/app-CGNn2sgH.js. Start in pnpm-lock.yaml and check whether a root override can force brace-expansion to 5.0.12 or later. Done means the lockfile resolves the fixed version and a rebuilt bundle no longer contains the old expand_ logic.

由索引模型根据 Issue 内容生成。

描述

While scanning published npm packages for bundled third-party code we found that @workflow/[email protected] (npm latest) inlines brace-expansion 5.0.6 in build/server/assets/app-CGNn2sgH.js (:140336 onward). It comes in through the bundled @vercel/queue client → minimatch 10.2.5, which the vercel/workflow pnpm-lock.yaml on main still resolves to [email protected].

  • CVE-2026-13149 (GHSA-3jxr-9vmj-r5cp): DoS via exponential-time expansion of consecutive non-expanding {} groups (fixed 5.0.7)
  • CVE-2026-14257 (GHSA-mh99-v99m-4gvg): DoS via unbounded expansion length (fixed 5.0.8)
  • CVE-2026-69152 (GHSA-rgw5-rvv9-x895): DoS via unbounded intermediate arrays (fixed 5.0.9)
  • CVE-2026-102276 (GHSA-6j4f-fj2g-mc7p): DoS via uncontrolled recursion in parseCommaParts (fixed 5.0.10)
  • CVE-2026-102278 (GHSA-qhr7-859c-m2p7): DoS via uncontrolled recursion on nested brace groups (fixed 5.0.11)
  • CVE-2026-102277 (GHSA-q2hr-2g5m-vwhr): quadratic-time expansion of the {a},b} rewrite (fixed 5.0.12)

@workflow/web does not declare brace-expansion or minimatch, so npm audit and SCA tools cannot flag this copy for you or your users.

We did not find a way for it to lead to an exploit in this package.

Because the copy ships where dependency audits cannot see it, it is easy to miss. We would suggest updating it when convenient, and sooner if untrusted input can reach it in your setup.

Suggested fix: update the lockfile (or add an override) so minimatch resolves brace-expansion >= 5.0.12, then rebuild @workflow/web.

Reproduction

Checked against the published tarball on 2026-11-03 (npm latest):

npm pack @workflow/[email protected] && tar xzf workflow-web-5.0.7.tgz
grep -n 'const EXPANSION_MAX = ' package/build/server/assets/app-CGNn2sgH.js
grep -n 'return expand_(str, max2, true)' package/build/server/assets/app-CGNn2sgH.js
grep -c 'EXPANSION_MAX_LENGTH' package/build/server/assets/app-CGNn2sgH.js

Output:

140336:const EXPANSION_MAX = 1e5;
140408:        return expand_(str, max2, true);
0

The inlined expand_ still restarts on the {a},b} rewrite by recursing (:140408), which 5.0.7 turned into a loop, and EXPANSION_MAX_LENGTH (added in 5.0.8) is absent.

主要语言
TypeScript
星标
2.5k
派生
401
平均合并
1 天 21 小时
30 天内合并 PR
201

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

vercel/workflow 的其他 Issue

查看 vercel/workflow 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。