Inefficient Algorithmic Complexity Affecting toml package, versions <5.0.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.29% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-TOML-21431464
  • published22 Oct 2026
  • disclosed22 Oct 2026
  • creditDr. Pi3ch, Midnight Michigan, Daniel Coles, Abdul-Ramon Adeyemi Folarin

Introduced: 22 Oct 2026

NewCVE-2026-114143  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade toml to version 5.0.1 or higher.

Overview

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the TOML compiler in lib/compiler.js, where path strings were maintained using three string-keyed Sets. Every key segment re-joined its entire prefix on each assignment, and every array-of-tables header rescanned every path defined so far, producing quadratic time complexity. An attacker can supply a TOML document with a large number of keys or array-of-tables headers to cause the parser to consume excessive CPU and crash the process.

CVSS Base Scores

version 4.0
version 3.1