CVE-2026-77465 Details
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.
A denial-of-service vulnerability has been identified in the toml-node package, which is a TOML parser for Node.js and the browser. The issue arises in versions prior to 4.2.0, where the parsing function toml.parse() utilizes a recursive-descent parser generated by Peggy 5.1.0. This parser lacks a depth limit and can be exploited by sending a TOML document with a few thousand nested arrays or inline tables. Such a payload can cause the Node.js call stack to overflow, leading to a RangeError and crashing an unprotected request worker or process. The vulnerability is present in the mutual recursion between the value, array, and inline_table rules, which can be triggered by deeply nested structures. The vulnerability has been patched in version 4.2.0.
Users can update to toml-node version 4.2.0 or later, where this vulnerability has been fixed. For immediate mitigation, it is recommended to manually check and limit the nesting depth of TOML arrays and inline tables before parsing, as well as to restrict the length of the input.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 3, 2026CISA-ADP
Assessed Sep 4, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/BinaryMuse/toml-node/commit/967b8b06754f3ecd9863cea118dc50792a8c353f | [email protected] | Source CodeVendor |
| https://github.com/BinaryMuse/toml-node/pull/72 | [email protected] | Issue TrackingVendor |
| https://github.com/BinaryMuse/toml-node/security/advisories/GHSA-82x6-q7mm-w9cf | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-674 | Uncontrolled Recursion | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| BinaryMuse toml-node | < 4.2.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 4, 2026 | CVE Modified | CISA-ADP |
| Sep 3, 2026 | New CVE Received | [email protected] |
Volerion