Bump picomatch past GHSA-fc5q-39xc-vjpf (ReDoS) once a patched release exists

未关闭
#3,000 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
devops, security

调研方向

Read the repository's release guidance and inspect the package manifests and lockfiles for the six installs listed in the issue. First check whether picomatch has a release outside the vulnerable range; once available, update each install using an admitted range or an override, then run npm audit --audit-level=high across all six installs. Done means every audit is clean without running npm audit fix.

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

描述

chore v2

Problem

The 2.16.0 release audit (#2999) reports GHSA-fc5q-39xc-vjpf (high): picomatch vulnerable to ReDoS through single-branch repeated extglobs, affecting picomatch <= 4.0.7.

No patched version exists. The advisory's first_patched_version is null, and 4.0.7 is picomatch's latest release, so neither a direct bump nor an overrides entry can resolve it. Per the release skill, it ships with 2.16.0 as a known issue instead of being forced.

Where it reaches us

[email protected] is the only copy in every install that holds one (root, web, cli, mcpdo, tui; launcher has none). Every other package npm audit flags (vite, vitest, tinyglobby, fdir, tsdown, typescript-eslint, Storybook, …) is flagged only through it.

  • Published install: npm ls picomatch --all --omit=dev at the root shows a production path through vite (a root runtime dependency, needed only by --web --dev) → picomatch and tinyglobby → picomatch.
  • Everywhere else it is dev-only tooling.

The globs vite matches come from developer configuration, not from MCP-server or network input, so exposure is low. It is still a high-severity advisory in the shipped tarball's dependency tree.

Why no sweep will file this

There is no open Dependabot alert for it, and the daily security sweep files one issue per bump, so an advisory with no fix produces nothing. This issue is the tracking record.

To do

  • Once picomatch publishes a release outside the vulnerable range, take it in every install: a lockfile update where a declared range already admits it, otherwise an overrides entry. Never npm audit fix (#2058).
  • Confirm npm audit --audit-level=high is clean across all six installs.
主要语言
TypeScript
星标
11.3k
派生
1.6k
平均合并
2 小时 31 分钟
30 天内合并 PR
118

环境准备

从这里开始

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

modelcontextprotocol/inspector 的其他 Issue

查看 modelcontextprotocol/inspector 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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