Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. toml
  4. ›
  5. CVE-2026-114141

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

October 22, 2026

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 unrelated or distinct entries, so a document containing n such headers costs O(n²) compiler work. A ~321KB document of 20,000 distinct-named [[name]] blocks takes ~10.3 seconds to parse — a completely ordinary-looking TOML shape (a flat settings block plus one or more array-of-tables sections), not a contrived edge case. This is a separate, unpatched code path from the previously fixed stack-overflow DoS (GHSA-82x6-q7mm-w9cf) and requires no key nesting or dotted keys at all.

References

  • github.com/BinaryMuse/toml-node/commit/609c873fffea0a27ebe5b4dd098eed2b3daf3606
  • github.com/BinaryMuse/toml-node/releases/tag/v5.0.1
  • github.com/BinaryMuse/toml-node/security/advisories/GHSA-4qx8-w7c3-pj3p
  • github.com/advisories/GHSA-4qx8-w7c3-pj3p
  • nvd.nist.gov/vuln/detail/CVE-2026-114141

Code Behaviors & Features

Detect and mitigate CVE-2026-114141 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 5.0.1

Fixed versions

  • 5.0.1

Solution

Upgrade to version 5.0.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-407: Inefficient Algorithmic Complexity

Source file

npm/toml/CVE-2026-114141.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 23 Oct 2026 00:15:51 +0000.