Intel

AIKIDO-2026-612943

toml is vulnerable to Denial of Service (DoS)

CVE-2026-114141Published Oct 19, 2026
October 19, 2026

65

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

toml.parse() takes quadratic time on documents with many [[name]] array of tables headers because addTableArray() rescans the entire assignedPaths and valueAssignments sets on every header instead of removing only the affected prefix. A roughly 321KB document of 20,000 distinct [[name]] blocks, a settings file that looks ordinary, takes about ten seconds to parse, blocking the event loop for any application that parses third party or user supplied TOML. This is a separate code path from the patched stack overflow guard and does not require nested keys. The fix replaces the string keyed sets with per table origin tracking so each header takes constant time.

How do I fix this?

Upgrade the toml library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

2.2.3 - 5.0.0

Fixed in 5.0.1

Background info

toml is vulnerable to Denial of Service (DoS) in versions 2.2.3 - 5.0.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea