Intel

AIKIDO-2026-167981

toml is vulnerable to Prototype Pollution

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

73

CVE Score

High

Prototype Pollution

Are you affected? Scan for Free

TL;DR

toml.parse() writes a property onto Object.prototype for every object in the process when a document pairs a dotted or quoted key with a table array header whose rendered path collides with that key's bookkeeping string. The collision lets addTableArray() clear an unrelated key's redefinition guard. A later dotted key then reaches the prototype chain through a Date value, because assign() writes target[lastKey] without checking that target is a table the compiler created. The fix tags every compiler created table and array with its origin so a key path can only pass through containers the compiler created.

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

4.1.2 - 5.0.0

Fixed in 5.0.1

Background info

toml is vulnerable to Prototype Pollution in versions 4.1.2 - 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