---
id: CVE-2026-114144
title: >-
  toml-node: Uncontrolled resource consumption (CPU DoS) via unbounded-length
  integer literals in toml.parse()
summary: >-
  toml-node is a TOML parser for Node.js and the browser. Prior to 5.0.1,
  toml.parse() passes unbounded hexadecimal, octal, binary, and decimal digit
  sequences from lib/parser.js to BigInt() before reduceInteger() in
  lib/compiler.js checks…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-400
  - CWE-770
vendor: BinaryMuse
product: toml-node
affected:
  - toml-node < 5.0.1
published: '2026-10-21'
updated: '2026-10-21'
sourceUpdated: '2026-10-21T20:32:54.019Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-114144'
references:
  - url: >-
      https://github.com/BinaryMuse/toml-node/security/advisories/GHSA-9qmh-m7c6-f92p
    label: >-
      https://github.com/BinaryMuse/toml-node/security/advisories/GHSA-9qmh-m7c6-f92p
  - url: >-
      https://github.com/BinaryMuse/toml-node/commit/9d52e384f6030932174d1afb0d910154dd62dead
    label: >-
      https://github.com/BinaryMuse/toml-node/commit/9d52e384f6030932174d1afb0d910154dd62dead
  - 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.885Z'
---

## Overview

toml-node is a TOML parser for Node.js and the browser. Prior to 5.0.1, toml.parse() passes unbounded hexadecimal, octal, binary, and decimal digit sequences from lib/parser.js to BigInt() before reduceInteger() in lib/compiler.js checks whether the resulting value fits the TOML 64-bit integer range. Converting a sufficiently long integer string consumes super-linear CPU time and synchronously blocks the Node.js event loop, allowing one attacker-supplied TOML document to deny service to concurrent work in the process. The later range check cannot prevent the conversion cost because it executes after BigInt(). 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.
