voltra CLI pulls in @xmldom/xmldom 0.7, which has known high-severity vulnerabilities

Aperta
#375 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Start with packages/cli/package.json and run pnpm why @xmldom/xmldom in the repo to see the whole chain from @bacons/xcode through @expo/plist. Then read packages/cli/src/platforms/ios/xcode.ts to see how narrowly the parsed project files are used. Both proposed fixes are open-ended — wait for an upstream @bacons/xcode release or swap the pbxproj library — so confirm the choice with a maintainer before starting; done means pnpm audit no longer reports a high finding that reaches published CLI users.

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

Descrizione

The voltra CLI (packages/cli) depends on @bacons/xcode@^1.0.0-alpha.33, which depends on @expo/plist@^0.0.18. A caret range on 0.0.x pins it to 0.0.18 exactly, and that version requires @xmldom/xmldom@~0.7.0. There is no patched 0.7 release, so installing the CLI brings in @xmldom/xmldom 0.7.13, which pnpm audit and Dependabot flag with several high-severity advisories. After #370, this is the only high finding left that reaches users.

The CLI uses @bacons/xcode to open and edit the user's own Xcode project (packages/cli/src/platforms/ios/xcode.ts), so the vulnerable XML parsing only ever sees files from that project. The practical risk is low.

Ways to fix it:

  • A release of @bacons/xcode on a current @expo/plist. The 0.10.x line uses @xmldom/xmldom ^0.8.8, and alpha.33 is the latest @bacons/xcode release.
  • Moving the CLI to a different pbxproj library.

A pnpm.overrides entry wouldn't help, because it only changes this repository's lockfile, not what users install.

Lingua principale
TypeScript
Stelle
864
Fork
51
Merge medio
2g 2h
PR unite (30g)
10

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 callstackincubator/voltra

Tutte le issue di callstackincubator/voltra

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.