---
id: CVE-2026-114143
title: >-
  toml-node: Quadratic-complexity DoS via long dotted keys or table paths in
  toml.parse()
summary: >-
  toml-node is a TOML parser for Node.js and the browser. Prior to 5.0.1,
  toml.parse() repeatedly slices and rejoins every path prefix in
  lib/compiler.js while processing long dotted keys, table headers,
  array-of-tables headers, and inline…
severity: high
cvss: 8.7
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'
cvssSource: cna
cwe:
  - CWE-407
vendor: BinaryMuse
product: toml-node
affected:
  - toml-node < 5.0.1
published: '2026-10-21'
updated: '2026-10-21'
sourceUpdated: '2026-10-21T20:31:01.539Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-114143'
references:
  - url: >-
      https://github.com/BinaryMuse/toml-node/security/advisories/GHSA-9j65-hcg3-gc64
    label: >-
      https://github.com/BinaryMuse/toml-node/security/advisories/GHSA-9j65-hcg3-gc64
  - url: >-
      https://github.com/BinaryMuse/toml-node/commit/609c873fffea0a27ebe5b4dd098eed2b3daf3606
    label: >-
      https://github.com/BinaryMuse/toml-node/commit/609c873fffea0a27ebe5b4dd098eed2b3daf3606
  - url: 'https://github.com/BinaryMuse/toml-node/releases/tag/v5.0.1'
    label: 'https://github.com/BinaryMuse/toml-node/releases/tag/v5.0.1'
tags:
  - cve.org
ingestedAt: '2026-10-21T21:13:32.886Z'
---

## Overview

toml-node is a TOML parser for Node.js and the browser. Prior to 5.0.1, toml.parse() repeatedly slices and rejoins every path prefix in lib/compiler.js while processing long dotted keys, table headers, array-of-tables headers, and inline-table keys in assign(), deepRef(), and setNestedKey(). The resulting quadratic work can block the Node.js event loop for several seconds, and sufficiently long paths can terminate the process through memory exhaustion. The maxDepth option does not limit key-segment count and therefore does not mitigate this path. This issue is fixed in version 5.0.1.

## Affected

- `toml-node < 5.0.1`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
