CVE-2026-77465 toml-node: Uncontrolled Recursion
A remote attacker can cause a denial of service by sending a deeply nested TOML document that exhausts the call stack in the toml-node parser.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-77465?
CVE-2026-77465 is a high-severity denial of service vulnerability in BinaryMuse toml-node, published on 3 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
toml-node is a TOML parser for Node.js and the browser. Prior to 4.2.0, toml.parse() uses a Peggy 5.1.0 generated recursive-descent parser in lib/parser.js whose peg$parsevalue, peg$parsearray, and peg$parseinline_table_entry functions recurse through nested arrays and inline tables without a depth limit. A remote unauthenticated application parsing an attacker-controlled TOML document containing a few thousand nested arrays or inline tables can exhaust the Node.js call stack, raise an unexpected RangeError rather than the parser's SyntaxError, and terminate an unprotected request worker or process. The corresponding grammar source is src/toml.pegjs, where the generated parser must be bounded. This issue is fixed in version 4.2.0.
Weakness: CWE-674
Which versions are affected by CVE-2026-77465?
2 open source packages ship an affected version, including toml.
| Package | Affected | Fixed in |
|---|---|---|
toml npm | All versions | 4.2.0 |
toml npm | All versions | 4.2.0 |
How do I fix CVE-2026-77465?
Upgrade toml to 4.2.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-77465 being exploited?
There is no known exploitation of CVE-2026-77465 in the wild and no public exploit code.
Sources
Also known as CLEANSTART-2026-VM09695, ECHO-1d3f-fb8f-0075, GHSA-82x6-q7mm-w9cf, MINI-45gg-h96p-58gp, ROOT-APP-NPM-CVE-2026-77465.