{"id":"CVE-2026-77465","published":"2026-09-03T20:37:22Z","modified":"2026-09-04T13:41:25Z","title":"toml-node: Uncontrolled Recursion","vendor":"BinaryMuse","product":"toml-node","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00609,"percentile":0.43319,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/BinaryMuse/toml-node/security/advisories/GHSA-82x6-q7mm-w9cf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/BinaryMuse/toml-node/pull/72","tags":["x_refsource_MISC"]},{"url":"https://github.com/BinaryMuse/toml-node/commit/967b8b06754f3ecd9863cea118dc50792a8c353f","tags":["x_refsource_MISC"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":8.66},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"binarymuse","affectedVersions":[{"vendor":"BinaryMuse","product":"toml-node","versions":["< 4.2.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-04T13:28:19.437437Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"toml","vulnerableRanges":["<4.2.0"],"patched":["4.2.0"],"from":["GHSA-82x6-q7mm-w9cf"],"provenance":"source"}],"summary":{"text":"The toml-node TOML parser for Node.js and the browser contains an uncontrolled recursion flaw in its generated parser (lib/parser.js, from the src/toml.pegjs grammar), where the value, array, and inline-table parsing functions recurse through nested structures with no depth limit. An attacker who can get an application using toml.parse() to process a crafted TOML document with a few thousand nested arrays or inline tables can exhaust the call stack and crash the worker or process, requiring no authentication, no user interaction, and only network reachability of the affected application.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:12Z"},"euvd":{"id":"EUVD-2026-70739","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-binarymuse-toml-node-cve-2026-77465","children":[{"from":"CVE-2026-77465","to":"CVE-2026-114144","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/parser.js","src/toml.pegjs"],"commits":["https://github.com/BinaryMuse/toml-node/commit/9d52e384f6030932174d1afb0d910154dd62dead","https://github.com/BinaryMuse/toml-node/commit/967b8b06754f3ecd9863cea118dc50792a8c353f"],"basis":"shared function","functions":["peg$parse"]}]}],"packageHistory":[{"cve":"CVE-2026-63376","published":"2026-09-03","fixed":"4.1.2","kev":false,"link":{"from":"CVE-2026-63376","to":"CVE-2026-77465","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:toml","fromFixed":"4.1.2","toFixed":"4.2.0","daysApart":0}]}},{"cve":"CVE-2026-77465","published":"2026-09-03","fixed":"4.2.0","kev":false},{"cve":"CVE-2026-114141","published":"2026-10-21","fixed":"5.0.1","kev":false},{"cve":"CVE-2026-114142","published":"2026-10-21","fixed":"5.0.1","kev":false},{"cve":"CVE-2026-114143","published":"2026-10-21","fixed":"5.0.1","kev":false}],"package":"npm:toml"}}