Threat Advisory

Attackers Can Trigger Stack Exhaustion via Uncontrolled Recursion in js-toml

Threat: Vulnerability
Targeted Region: Global
Targeted Sector: Technology & IT
Criticality: Medium
[subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

CVE-2026-63386 with a CVSS score of 5.3 is a denial-of-service vulnerability in the js-toml npm package, specifically in the load() function that parses untrusted TOML. Affected versions are js-toml (npm) versions < 1.1.3. The flaw is uncontrolled recursion in the recursive-descent parser and recursive tree-walking interpreter, which do not enforce a maximum nesting or key depth. An unauthenticated attacker who can supply a TOML string to an application using js-toml can craft a small document with deeply nested arrays, inline tables, or a long dotted key. This drives recursion beyond the runtime call-stack limit and causes load() to throw a RangeError instead of the expected SyntaxParseError. If the application does not use a generic exception handler or relies on the documented error type for malformed input, the error can crash the worker or process, produce service errors, restart loops, or bypass input-validation logic. The impact is primarily availability loss, with no confidentiality or integrity impact.

RECOMMENDATION:

We recommend you to update js-toml to version 1.1.3.[/subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

CVE-2026-63386 with a CVSS score of 5.3 is a denial-of-service vulnerability in the js-toml npm package, specifically in the load() function that parses untrusted TOML. Affected versions are js-toml (npm) versions < 1.1.3. The flaw is uncontrolled recursion in the recursive-descent parser and recursive tree-walking interpreter, which do not enforce a maximum nesting or key depth. An unauthenticated attacker who can supply a TOML string to an application using js-toml can craft a small document with deeply nested arrays, inline tables, or a long dotted key. This drives recursion beyond the runtime call-stack limit and causes load() to throw a RangeError instead of the expected SyntaxParseError. If the application does not use a generic exception handler or relies on the documented error type for malformed input, the error can crash the worker or process, produce service errors, restart loops, or bypass input-validation logic. The impact is primarily availability loss, with no confidentiality or integrity impact.

RECOMMENDATION:

We recommend you to update js-toml to version 1.1.3.[emaillocker id="1283"]

REFERENCES:

The following reports contain further technical details:

[/emaillocker]
crossmenu