Skip to content
High 8.7

toml-node で長いドット区切りキーによりサービス停止が起きる

CVE-2026-114143 First seen on SecPulse

Summary

toml-node の toml.parse() は、長いドット区切りキーやテーブル見出しを処理する際に計算量が二次的に増えるため、細工された TOML によって Node.js のイベントループが数秒間ブロックされ、メモリ枯渇でプロセスが停止するおそれがあります。影響を受けるのは 5.0.1 より前の版です。修正版の 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 の toml.parse() は、長いドット区切りキーやテーブル見出しを処理する際に計算量が二次的に増えるため、細工された TOML によって Node.js のイベントループが数秒間ブロックされ、メモリ枯渇でプロセスが停止するおそれがあります。影響を受けるのは 5.0.1 より前の版です。修正版の 5.0.1 に更新してください。

Affected packages

PackageAffected → Fixed
BinaryMusetoml-node —
npmtoml
< 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, toml.parse() repeatedly slices and rejoins every path prefix in lib/compiler.js while processing long dotted keys, table headers, array-of-tables headers, and inline-table keys in assign(), deepRef(), and setNestedKey(). The resulting quadratic work can block the Node.js event loop for several seconds, and sufficiently long paths can terminate the process through memory exhaustion. The maxDepth option does not limit key-segment count and therefore does not mitigate this path. This issue is fixed in version 5.0.1.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details