toml-nodeで大量の配列テーブル見出しによりサービス拒否の恐れ
概要
toml-node の 5.0.1 より前のバージョンでは、toml.parse() に大量の配列テーブル見出し([[name]])を含むTOML文書を与えると処理が二次的に増大し、Node.js のイベントループが塞がれてサービス拒否の状態になるおそれがあります。修正版の 5.0.1 以降へ更新してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
toml-node の 5.0.1 より前のバージョンでは、toml.parse() に大量の配列テーブル見出し([[name]])を含むTOML文書を与えると処理が二次的に増大し、Node.js のイベントループが塞がれてサービス拒否の状態になるおそれがあります。修正版の 5.0.1 以降へ更新してください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| BinaryMusetoml-node | — | 記載なし |
| npmtoml |
5.0.1 未満→ 5.0.1 |
5.0.1 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
toml-node is a TOML parser for Node.js and the browser. Prior to 5.0.1, the toml.parse() compiler's addTableArray() function in lib/compiler.js rescans the complete assignedPaths and valueAssignments bookkeeping sets for every array-of-tables header. Distinct [[name]] paths are not pruned, so a document with many such headers causes quadratic synchronous work and can block the Node.js event loop, denying service to other operations in the process. This issue is fixed in version 5.0.1.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com