English version →
カテゴリ
CVE-2020-15168

node-fetch の脆弱性 (CVE-2020-15168)

概要

node-fetch に 脆弱性 (CVE-2020-15168) が存在。不正な操作・情報露出のリスクがあります。size 経由で攻撃可能。対策: 3.0.0-beta.9 以上に更新。

原文の説明

取得元が公開している説明をそのまま載せています (多くは英語)。

Impact

Node Fetch did not honor the size option after following a redirect, which means that when a content size was over the limit, a FetchError would never get thrown and the process would end without failure.

For most people, this fix will have a little or no impact. However, if you are relying on node-fetch to gate files above a size, the impact could be significant, for example: If you don't double-check the size of the data after fetch() has completed, your JS thread could get tied up doing work on a large file (DoS) and/or cost you money in computing.

Patches

We released patched versions for both stable and beta channels:

  • For v2: 2.6.1
  • For v3: 3.0.0-beta.9

Workarounds

None, it is strongly recommended to update as soon as possible.

For more information

If you have any questions or comments about this advisory:

  • Open an issue in node-fetch
  • Contact one of the core maintainers.

出典: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV

自動生成の要約

取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。

node-fetch という製品で、CVE-2020-15168 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに size のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
不正な操作・情報露出のリスクがあります。
対策: node-fetch を 3.0.0-beta.9 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「node-fetch CVE-2020-15168」を検索してください。

CVE-2020-15168 (node-fetch) — CWE-20
攻撃ベクター: ネットワーク経由 (リモート攻撃可)
脆弱箇所: size / FetchError
修正バージョン: 3.0.0-beta.9 (即時適用推奨)
暫定回避: None, it is strongly recommended to update as soon as possible.
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。

❓ 何が問題か

node-fetch に 脆弱性 (CWE-20) があります。攻撃者は size を経由して脆弱な処理に到達できます。

📍 影響範囲

node-fetch の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: size / FetchError。

🔥 重要度

重要度: ?。不正な操作・情報露出のリスクがあります。

🔧 修正方法

3.0.0-beta.9 に更新してください。

🛡️ 暫定回避

暫定回避: None, it is strongly recommended to update as soon as possible.

🔍 検知方法

Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。

対応アクション

SOC/SREチームが順番に実行すべき具体的なステップとコマンド例

  1. 1
    影響範囲の特定 identify
    grep -r 'node-fetch' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で node-fetch を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    暫定回避策の適用 mitigate
    None, it is strongly recommended to update as soon as possible.

    パッチが適用されるまでの応急処置として、None, it is strongly recommended to update as soon as possible. を実施。回避策の副作用 (機能低下) を確認した上で。

  3. 3
    パッチ適用 patch
    Upgrade node-fetch to 3.0.0-beta.9

    ステージング環境で 3.0.0-beta.9 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  4. 4
    事後検証 verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

影響パッケージ

npm node-fetch
[{"type":"SEMVER","events":[{"introduced":"3.0.0-beta.1"},{"fixed":"3.0.0-beta.9"}]}]

参照URL

当サイトでは、アクセス解析と広告の効果測定のために Cookie を使います。株式会社Game のサイト共通の設定です。 詳しく