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

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

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

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

調査の方向性

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.

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

説明

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.

主要言語
TypeScript
スター
864
フォーク
51
平均マージ
2日 2時間
マージ済み PR(30日)
10

環境構築

はじめの一歩

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

callstackincubator/voltra のほかの issue

callstackincubator/voltra の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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