CVE-2026-114141 is a quadratic-complexity (O(n²)) denial-of-service in the toml npm package (BinaryMuse/toml-node). The root cause is in addTableArray() in lib/compiler.js. On every array-of-tables header ([[name]]), this function performed two full linear scans over the assignedPaths and valueAssignments Sets, pruning only entries matching the currently-reopened path via isSameOrSubPath(). Because unrelated top-level keys and distinct array-of-tables names were never pruned, both Sets grew without bound, and each subsequent header rescanned the entire accumulated set — yielding O(n²) total work for n headers. A ~321KB document of 20,000 distinct-named [[name]] blocks takes ~10.3 seconds to parse, blocking the single-threaded Node.js event loop.
The fix (commit 609c873fffea0a27ebe5b4dd098eed2b3daf3606) eliminates the string-keyed path Sets entirely and replaces them with a containerKinds WeakMap that tags each table with its origin. This removes the quadratic scans from addTableArray() and deletes the isSameOrSubPath() helper. The vulnerable functions that would appear in a runtime profile during exploitation are: addTableArray (the hot path performing the O(n²) scans), isSameOrSubPath (the predicate invoked per entry in each scan), compile (the enclosing function owning the unbounded Sets and the reduce() dispatch loop), and parse (the public entry point in index.js that accepts the untrusted input and synchronously invokes the compiler).