Security: remove the unused react-quill dependency (pulls in vulnerable Quill 1.x)

オープン 初心者向け
#129 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, next.js, node.js, react

調査の方向性

package.jsonから始め、src/でreact-quillまたはquillがインポートされているか確認します。issueでは、src/pages/apps/notes.jsとsrc/pages/api/socket/io.jsが別パッケージのquill-deltaを使用しているとされています。使われていない依存関係を削除し、その後npm test、npm run build、npm auditを実行します。Notesアプリが引き続き動作し、監査でquillまたはreact-quillが報告されなくなれば完了です。

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

説明

difficulty: easy good first issue security

New here? Say hi on Discord first, it's the fastest way to get help: https://discord.gg/NW2YZACf4k

npm audit reports a moderate XSS advisory for quill. It comes from react-quill in package.json, which bundles Quill 1.3.7.

But nothing in src/ imports react-quill or quill. The editor code only uses quill-delta (src/pages/apps/notes.js and src/pages/api/socket/io.js), and that's a separate package with no advisory. So the vulnerable code is dead weight we ship in node_modules, and it makes the audit noisy.

Steps

  1. npm uninstall react-quill
  2. Check nothing breaks: npm test, npm run build, and open the Notes app in npm run dev.
  3. Run npm audit and confirm quill / react-quill are gone from the report.
  4. Paste the before/after npm audit lines in the PR.

Done when

  • react-quill is removed from package.json.
  • CI is green.
  • Notes still works.

A nice small security fix if you're new.


Comment "I'd like to take this" and we'll assign you. Questions are welcome in Discord: https://discord.gg/NW2YZACf4k

主要言語
JavaScript
スター
16
フォーク
8
平均マージ
4時間 24分
マージ済み PR(30日)
10

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

codehubbers/OrbitOS のほかの issue

codehubbers/OrbitOS の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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