THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-4qx8-w7c3-pj3p (high) — toml-node: Quadratic-complexity DoS via many array-of-tables headers in toml.parse()

[GHSA] GHSA-4qx8-w7c3-pj3p (high) — toml-node: Quadratic-complexity DoS via many array-of-tables headers in toml.parse()

medgithub_advisoriesPublished 2026-10-22

GHSA-4qx8-w7c3-pj3p Severity: high CVE: CVE-2026-114141

toml-node: Quadratic-complexity DoS via many array-of-tables headers in toml.parse()

## Summary

`toml.parse()` is vulnerable to a quadratic-complexity (O(n²)) denial-of-service via many array-of-tables (`[[name]]`) headers. `addTableArray()` in `lib/compiler.js` rescans two entire bookkeeping Sets on every `[[name]]` header without pruning

Indicators of compromise

Original source: https://github.com/advisories/GHSA-4qx8-w7c3-pj3p