---
id: CVE-2026-77465
title: toml-node is a TOML parser for Node.js and the browser
summary: >-
  toml-node is a TOML parser for Node.js and the browser. Prior to 4.2.0,
  toml.parse() uses a Peggy 5.1.0 generated recursive-descent parser in
  lib/parser.js whose peg$parsevalue, peg$parsearray, and
  peg$parseinline_table_entry functions r…
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'
cwe:
  - CWE-674
  - CWE-606
vendor: Red Hat
product: Red Hat Enterprise Linux 10
affected:
  - enterprise_linux 10
patched:
  - toml 4.2.0
published: '2026-09-03'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T21:09:13.080'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-77465'
references:
  - url: >-
      https://github.com/BinaryMuse/toml-node/commit/967b8b06754f3ecd9863cea118dc50792a8c353f
    label: security-advisories@github.com
  - url: 'https://github.com/BinaryMuse/toml-node/pull/72'
    label: security-advisories@github.com
  - url: >-
      https://github.com/BinaryMuse/toml-node/security/advisories/GHSA-82x6-q7mm-w9cf
    label: security-advisories@github.com
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-77465.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-77465'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2528258'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-77465'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-77465'
  - url: 'https://github.com/advisories/GHSA-82x6-q7mm-w9cf'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
  - ghsa
  - npm
  - score-dispute
epss: 0.00609
epssPercentile: 0.46853
aliases:
  - GHSA-82x6-q7mm-w9cf
ecosystem: npm
scores:
  nvd: 7.5
  vendor: 3.5
  ghsa: 7.5
ingestedAt: '2026-09-03T21:08:45.941Z'
---

## Overview

toml-node is a TOML parser for Node.js and the browser. Prior to 4.2.0, toml.parse() uses a Peggy 5.1.0 generated recursive-descent parser in lib/parser.js whose peg$parsevalue, peg$parsearray, and peg$parseinline_table_entry functions recurse through nested arrays and inline tables without a depth limit. A remote unauthenticated application parsing an attacker-controlled TOML document containing a few thousand nested arrays or inline tables can exhaust the Node.js call stack, raise an unexpected RangeError rather than the parser's SyntaxError, and terminate an unprotected request worker or process. The corresponding grammar source is src/toml.pegjs, where the generated parser must be bounded. This issue is fixed in version 4.2.0.

## Remediation

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

## Package advisory (CVE-2026-77465)

Affected packages:

- `toml < 4.2.0`

Patched in:

- `toml 4.2.0`

Source: https://github.com/advisories/GHSA-82x6-q7mm-w9cf

## Vendor advisories

- **Red Hat VEX** · Low · affected: Red Hat Enterprise Linux 10 · no fix planned: Red Hat Enterprise Linux 10 · updated 2026-09-08 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-77465.json)
