toml-nodeで大量の配列テーブル見出しによりサービス拒否の恐れ
Summary
toml-node の 5.0.1 より前のバージョンでは、toml.parse() に大量の配列テーブル見出し([[name]])を含むTOML文書を与えると処理が二次的に増大し、Node.js のイベントループが塞がれてサービス拒否の状態になるおそれがあります。修正版の 5.0.1 以降へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
toml-node の 5.0.1 より前のバージョンでは、toml.parse() に大量の配列テーブル見出し([[name]])を含むTOML文書を与えると処理が二次的に増大し、Node.js のイベントループが塞がれてサービス拒否の状態になるおそれがあります。修正版の 5.0.1 以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| BinaryMusetoml-node | — | Not listed |
| npmtoml |
< 5.0.1→ 5.0.1 |
5.0.1 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- 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