Description
toml-node is a TOML parser for Node.js and the browser. Prior to 5.0.1, toml.parse() can write attacker-controlled properties to Object.prototype because quoteDottedString() in lib/compiler.js produces the same bookkeeping string for distinct quoted key paths, allowing addTableArray() to clear another key's guard. The assign() path then descends through an unowned Date value without applying the owned-container check and can reach the prototype chain. Objects created elsewhere in the process can inherit the injected property. This issue is fixed in version 5.0.1.
Published: 2026-10-21
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Prototype pollution that allows arbitrary property injection into Object.prototype
Action: Immediate Patch
AI Analysis

Impact

The vulnerability exists in the toml-node library prior to version 5.0.1. When a TOML document is parsed, the internal quoteDottedString logic can produce an identical bookkeeping string for different quoted key paths. This allows addTableArray to clear a different key’s guard, and the subsequent assign path can descend through an unowned Date value without applying an owned‑container check. As a result, the parser can reach Object.prototype and write attacker‑controlled properties. Injected properties may then be inherited by objects created elsewhere in the application, potentially enabling arbitrary code execution or other malicious behavior.

Affected Systems

BinaryMuse toml-node, versions prior to 5.0.1.

Risk and Exploitability

The CVSS score of 8.8 classifies this as high‑severity. An attacker can supply a malicious TOML document to any Node.js component that uses toml-node, causing prototype pollution. Although an EPSS score is not available, the lack of a KEV listing does not reduce the technical risk, especially for applications that import untrusted TOML data. The primary attack vector is local or internal, requiring only that the vulnerable library processes crafted input. Once the prototype is polluted, downstream libraries or code that rely on Object.prototype may behave unexpectedly, giving the attacker leverage to elevate privileges or tamper with application state.

Generated by OpenCVE AI on October 22, 2026 at 02:52 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade toml-node to version 5.0.1 or later
  • Audit all code paths that call toml.parse to ensure no legacy paths remain
  • If an upgrade is not possible, restrict toml-node usage to trusted data only and avoid parsing externally supplied TOML

Generated by OpenCVE AI on October 22, 2026 at 02:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-h895-cgqg-jf52 toml-node: Prototype pollution: parsing a TOML document can write to Object.prototype
History

Thu, 29 Oct 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 22 Oct 2026 10:45:00 +0000

Type Values Removed Values Added
First Time appeared Binarymuse
Binarymuse toml-node
Vendors & Products Binarymuse
Binarymuse toml-node

Wed, 21 Oct 2026 20:45:00 +0000

Type Values Removed Values Added
Description toml-node is a TOML parser for Node.js and the browser. Prior to 5.0.1, toml.parse() can write attacker-controlled properties to Object.prototype because quoteDottedString() in lib/compiler.js produces the same bookkeeping string for distinct quoted key paths, allowing addTableArray() to clear another key's guard. The assign() path then descends through an unowned Date value without applying the owned-container check and can reach the prototype chain. Objects created elsewhere in the process can inherit the injected property. This issue is fixed in version 5.0.1.
Title toml-node: Prototype pollution: parsing a TOML document can write to Object.prototype
Weaknesses CWE-1321
References
Metrics cvssV4_0

{'score': 8.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Binarymuse Toml-node
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-28T18:19:14.202Z

Reserved: 2026-10-20T21:53:58.473Z

Link: CVE-2026-114142

cve-icon Vulnrichment

Updated: 2026-10-28T18:19:05.995Z

cve-icon NVD

Status : Deferred

Published: 2026-10-21T21:17:56.820

Modified: 2026-10-28T19:17:27.063

Link: CVE-2026-114142

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T10:30:04Z

Weaknesses
  • CWE-1321

    Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')