← Back to overview

CVE-2026-77465 affects toml-node, a TOML parser for Node.js and browsers, in versions prior to 4.2.0. The vulnerability exists in the Peggy 5.1.0 generated recursive-descent parser within lib/parser.js, where functions peg$parsevalue, peg$parsearray, and peg$parseinline_table_entry recurse through nested arrays and inline tables without any depth limit. A remote unauthenticated attacker can craft a malicious TOML document with thousands of nested arrays or inline tables to exhaust the Node.js call stack. This causes an unexpected RangeError instead of the expected SyntaxError, which can terminate unprotected request workers or processes, resulting in a denial of service. The root cause is in the grammar source file src/toml.pegjs where no recursion bounding is enforced. The vulnerability has been patched in version 4.2.0 of toml-node.

Affected products

  • Node.js
  • toml-node

Related CVE's

  • CVE-2026-77465

Categories

  • Supply Chain & Dependencies
  • Web Technologies