Review argparse dependency bringing in sprintf-js CVE-2026-97058

オープン
#8,749 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@Varun-S10 がすでに取り組んでいます。

2026年10月19日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
22/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, typescript

調査の方向性

Start by checking which package.json in the tfjs monorepo declares argparse and whether it is a runtime dependency, using npm ls argparse sprintf-js to confirm the chain. Then review the argparse@^1.0.10 range and any newer compatible release that drops sprintf-js. Done means a documented maintainer decision on removing, making optional, or upgrading the dependency, not a code patch. Expect the discussion to need maintainer input.

索引モデルが issue の本文から書いたものです。

説明

type:others

TensorFlow.js 4.22.0 declares argparse@^1.0.10, which resolves to [email protected] and brings in [email protected]:

@tensorflow/[email protected] → [email protected] → [email protected]

sprintf-js versions through 1.1.3 are listed as affected by CVE-2026-97058. The upstream report is being discussed in sprintf-js issue #237.

We see this dependency chain in applications consuming TensorFlow.js. We are not asserting that TFJS exposes the vulnerable formatter to untrusted input in our usage. Could you assess whether argparse is required in this package’s runtime dependency set, and whether it can be removed, made optional, or updated to a compatible release that no longer depends on sprintf-js?

We prefer not to force an argparse major-version override in consuming applications without compatibility guidance. Please advise whether an upstream dependency change is planned.

主要言語
TypeScript
スター
19.2k
フォーク
2k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tensorflow/tfjs のほかの issue

tensorflow/tfjs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。