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

Aperta
#8,749 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@Varun-S10 ci sta già lavorando.

Dal 19/10/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
19.2k
Fork
2k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di tensorflow/tfjs

Tutte le issue di tensorflow/tfjs

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.