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

CVE-2026-114143: toml-node: Quadratic-complexity DoS via long dotted keys or table paths in toml.parse()

October 22, 2026

toml.parse() is vulnerable to a quadratic-complexity (O(n²)) denial-of-service via a single long dotted key, table header, or inline-table key. A ~100KB crafted document causes a multi-second synchronous hang; a ~200KB document crashes the Node.js process outright with an uncatchable out-of-memory error. This is a separate, unpatched code path from the previously fixed stack-overflow DoS (GHSA-82x6-q7mm-w9cf) — it requires no array/inline-table nesting at all, and is confirmed unaffected by the maxDepth option that fixed that earlier issue.

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-9j65-hcg3-gc64
  • github.com/advisories/GHSA-9j65-hcg3-gc64
  • nvd.nist.gov/vuln/detail/CVE-2026-114143

Code Behaviors & Features

Detect and mitigate CVE-2026-114143 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-114143.yml

Spotted a mistake? Edit the file on GitLab.

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

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