Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. toml
  4. ›
  5. CVE-2026-77465

CVE-2026-77465: toml-node: Uncontrolled Recursion

September 3, 2026

toml.parse() crashes with an uncaught RangeError: Maximum call stack size exceeded when parsing deeply nested arrays or inline tables. The parser is generated by Peggy 5.1.0 (a PEG parser generator) as a recursive-descent parser; the value rule mutually recurses with the array and inline-table rules with no depth limit, so nesting depth equal to the input depth exhausts Node’s call stack.

A small payload — a bare array nested a few thousand levels deep (~5–6 KB) — reliably crashes the process on a default Node.js configuration. toml has ~47 million monthly downloads.


References

  • github.com/BinaryMuse/toml-node/commit/967b8b06754f3ecd9863cea118dc50792a8c353f
  • github.com/BinaryMuse/toml-node/pull/72
  • github.com/BinaryMuse/toml-node/security/advisories/GHSA-82x6-q7mm-w9cf
  • github.com/advisories/GHSA-82x6-q7mm-w9cf
  • nvd.nist.gov/vuln/detail/CVE-2026-77465

Code Behaviors & Features

Detect and mitigate CVE-2026-77465 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.2.0

Fixed versions

  • 4.2.0

Solution

Upgrade to version 4.2.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

npm/toml/CVE-2026-77465.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 04 Sep 2026 00:20:58 +0000.