---
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
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-10-28T01:38:59.568245Z'
exploitAvailable: true
published: '2026-10-21'
updated: '2026-10-28'
sourceUpdated: '2026-10-28T01:45:01.590Z'
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'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-114143'
  - url: 'https://github.com/advisories/GHSA-9j65-hcg3-gc64'
tags:
  - cve.org
  - exploit-available
  - ghsa
  - npm
epss: 0.00365
epssPercentile: 0.30208
aliases:
  - GHSA-9j65-hcg3-gc64
ecosystem: npm
patched:
  - toml 5.0.1
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.

## Package advisory (CVE-2026-114143)

Affected packages:

- `toml <= 5.0.0`

Patched in:

- `toml 5.0.1`

Source: https://github.com/advisories/GHSA-9j65-hcg3-gc64
