Build dependency chain installs brace-expansion@2.1.2 affected by GHSA-mh99-v99m-4gvg
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- graphql, javascript, typescript
- 領域
- build-system, security
調査の方向性
Start with a clean checkout and run npm ci, then use npm explain minimatch --json, npm explain brace-expansion --json, and npm audit --json to trace the build dependency chain. Review the Shopify Function and graphql-config dependency ranges; done means the supported build dependencies resolve to an unaffected compatible minimatch/brace-expansion combination without an out-of-range consumer override.
索引モデルが issue の本文から書いたものです。
説明
Summary
The current Shopify Function JavaScript toolchain installs
brace-expansion@2.1.2 through minimatch@9.0.9. npm audit reports
GHSA-mh99-v99m-4gvg as high severity.
Environment and versions
- Node.js 24.13.1
- npm 11.8.0
- @shopify/shopify_function 2.0.1
- graphql-config 5.1.3
- minimatch 9.0.9
- brace-expansion 2.1.2
Reproduction
In a Shopify app with a JavaScript Function extension:
- Run
npm cifrom a clean checkout. - Run
npm explain minimatch --json. - Run
npm explain brace-expansion --json. - Run
npm audit --json.
The Function workspace reaches the affected package through the Shopify
Function/code-generation build chain, including graphql-config/minimatch.
The production app build was generated with:
npm exec --offline -- shopify app build --config production --no-color --skip-dependencies-installation
We checked the generated Function JavaScript and WASM with static byte/string
searches and found no minimatch, brace-expansion, or graphql-config package
reference. We therefore believe this is a build-tool dependency, but still
fail our dependency audit until it is resolved or narrowly reviewed.
Forcing minimatch 10 as a consumer override is not a safe workaround:
graphql-config 5.1.3 declares minimatch ^9.0.5, so npm reports the dependency
tree as invalid.
Expected result
The supported Function build dependencies should resolve to a minimatch /
brace-expansion combination that is not affected by
GHSA-mh99-v99m-4gvg.
The smallest preferred fix is a compatible Shopify Function dependency update
whose graphql-config/minimatch ranges support a patched brace-expansion
release, without requiring consumers to force an out-of-range major override.
Additional context
The package is used by the build toolchain and is not imported by the
generated Function JavaScript or WASM artifact in our verification. We are
still treating the audit result as fail-closed and would prefer an upstream
dependency update over an incompatible package override.
- 主要言語
- TypeScript
- スター
- 35
- フォーク
- 9
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Shopify/shopify-function-javascript のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
Shopify/shopify-function-javascript#127 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 25/100
Shopify/shopify-function-javascript#98 · コメント 1 件 ·
Shopify/shopify-function-javascript の issue をすべて見る
似ている issue
-
clawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:message-loss issue-rating: 🦞 diamond lobster maturity:stable P2
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
ZCode 3.14.3 に対応する オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
supermomonga/zcode-acp#24 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
growthbook/growthbook#7100 ·
-
triage
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100