toml-node: Uncontrolled Recursion
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-674.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| BinaryMuse | toml-node | before 4.2.0 | 4.2.0 | Patch available | CNA |
| — | toml (npm) | before 4.2.0 | 4.2.0 | Patch available | GHSA-82x6-q7mm-w9cf |
- toml-node VendorBinaryMuse Affected before 4.2.0 Fixed in 4.2.0 Patch available CNA
- toml (npm) Vendor— Affected before 4.2.0 Fixed in 4.2.0 Patch available GHSA-82x6-q7mm-w9cf
Remediation
- Fix · CNA toml-node (BinaryMuse) Fixed in 4.2.0
- Fix · GHSA-82x6-q7mm-w9cf toml (npm) Fixed in 4.2.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-77465
- 2026-10-03 Alias added: GHSA-82x6-q7mm-w9cf
References
More BinaryMuse vulnerabilities
- TI-2026-78987 Quadratic complexity denial of service in toml-node TOML parser CVSS 4.0HIGH 8.7
- TI-2026-45178 toml-node: Prototype Pollution Leads to `Object.prototype` Corruption via `__proto__` Key-Path Desynchronization CVSS 3.1HIGH 8.2
- TI-2026-78988 CPU denial of service in toml-node via long integer literals CVSS 3.1HIGH 7.5
- TI-2026-78986 Prototype pollution in toml-node parser writes to Object.prototype CVSS 4.0HIGH 8.8
- TI-2026-78985 Quadratic complexity in toml-node allows denial of service CVSS 4.0HIGH 8.7
Sources
- CVE-2026-77465 · CVE Program
- CVE-2026-77465 · NVD
- FIRST EPSS
- GHSA-82x6-q7mm-w9cf · GitHub Advisory Database · CC BY 4.0
- CVE-2026-77465 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences