---
id: CVE-2026-114141
title: >-
  toml-node: Quadratic-complexity DoS via many array-of-tables headers in
  toml.parse()
summary: >-
  toml-node is a TOML parser for Node.js and the browser. Prior to 5.0.1, the
  toml.parse() compiler's addTableArray() function in lib/compiler.js rescans
  the complete assignedPaths and valueAssignments bookkeeping sets for every
  array-of-t…
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:25:36.396Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-114141'
references:
  - url: >-
      https://github.com/BinaryMuse/toml-node/security/advisories/GHSA-4qx8-w7c3-pj3p
    label: >-
      https://github.com/BinaryMuse/toml-node/security/advisories/GHSA-4qx8-w7c3-pj3p
  - 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.887Z'
---

## Overview

toml-node is a TOML parser for Node.js and the browser. Prior to 5.0.1, the toml.parse() compiler's addTableArray() function in lib/compiler.js rescans the complete assignedPaths and valueAssignments bookkeeping sets for every array-of-tables header. Distinct [[name]] paths are not pruned, so a document with many such headers causes quadratic synchronous work and can block the Node.js event loop, denying service to other operations in the process. 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.
