Impact
toml-node uses a Peggy-generated recursive‑descent parser that recurses through nested arrays and inline tables without a depth limit. An attacker can supply a TOML document with thousands of nested structures, causing the Node.js call stack to overflow. The parser raises an unexpected RangeError instead of a SyntaxError, terminating an unprotected request worker or process. This flaw is a classic uncontrolled recursion leading to denial of service and is classified as CWE‑674.
Affected Systems
BinaryMuse toml-node v4.2.0 and earlier are affected. The issue was fixed in toml-node 4.2.0.
Risk and Exploitability
The vulnerability has a CVSS score of 7.5 and a currently unavailable EPSS score, indicating a moderate to high risk but unknown real‑world exploitation probability. It is not listed in the CISA KEV catalog. The intended attack vector is remote and unauthenticated: any application that parses an attacker‑controlled TOML document can trigger the crash without authentication or elevated privileges.
OpenCVE Enrichment
Github GHSA