Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

High · 8.8 Node.js & npm CVE-2026-114142 GHSA-h895-cgqg-jf52

Prototype Pollution Vulnerability in toml-node TOML Parser (CVE-2026-114142)

A prototype pollution flaw in the toml-node TOML parser (published as both 'toml' and 'tome' on npm) allows parsing of a crafted TOML document to write attacker-controlled properties onto Object.prototype. The issue is fixed in version 5.0.1.

By PatchBriefing · ·

Produced automatically from official sources with the help of AI. How we work →

Synthesized by AI from 4 sources · updated 1 week ago

AI summary

A vulnerability has been identified in toml-node, a TOML parser for Node.js and browser environments, distributed under the npm package names 'toml' and 'tome'. The flaw, tracked as CVE-2026-114142, allows a specially crafted TOML document to pollute Object.prototype when parsed. The issue has been fixed in version 5.0.1.

What happened

Security advisories report a prototype pollution vulnerability in toml-node, a TOML parsing library published on npm under the package names 'toml' and 'tome'. Parsing a maliciously crafted TOML document with toml.parse() can result in attacker-controlled properties being written to Object.prototype, the base object from which all JavaScript objects inherit.

Technical cause

The root cause lies in the quoteDottedString() function in lib/compiler.js, which can produce the same internal bookkeeping string for distinct quoted key paths. This collision allows the addTableArray() function to incorrectly clear a guard that is meant to protect a different key. Subsequently, the assign() code path descends through an unowned Date value without applying the expected owned-container check, allowing the write to reach the prototype chain. Because Object.prototype is shared, other objects created elsewhere in the running process can inherit the injected property.

Why it matters

Prototype pollution vulnerabilities of this kind can have wide-reaching effects because Object.prototype is inherited by virtually every object in a JavaScript application. Depending on how an affected application uses parsed TOML data and how it subsequently handles object properties, this could affect application logic, lead to denial of service, or in some application contexts enable further exploitation. The vulnerability has been assigned a CVSS score of 8.8, reflecting that it can be triggered remotely without authentication or user interaction, with a high impact on integrity and availability of affected systems.

Who is affected

Any application or service that uses the toml-node library (available on npm as 'toml' or 'tome') to parse TOML documents, particularly those that parse TOML input originating from untrusted or external sources, is potentially affected.

Affected versions

Versions of both the 'toml' and 'tome' npm packages up to and including version 5.0.0 are affected. The vulnerability is fixed in version 5.0.1.

Fixes and mitigation

The vendor has released version 5.0.1 of the toml-node library, published under both the 'toml' and 'tome' npm package names, which resolves this issue. No workaround beyond updating is described in the available advisories.

Recommended action

Site owners and developers using toml-node (the 'toml' or 'tome' npm packages) should update to version 5.0.1 as soon as possible. Organizations should audit their dependency trees to identify applications that pull in either package name, since both are affected by the same issue.

PatchBriefing score

8.8 / 10 · High

Official CVSS: 8.8

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

EPSS 0.0055 (39 percentile)

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

tome <= 5.0.0
vulnerable
tome ≥ 0 < 5.0.1
vulnerable
≥ 5.0.1
patched
toml ≥ 0 < 5.0.1
vulnerable
toml <= 5.0.0
vulnerable
≥ 5.0.1
patched

Reported fixes

The vendor has released version 5.0.1 of the toml-node library, published under both the 'toml' and 'tome' npm package names, which resolves this issue. No workaround beyond updating is described in the available advisories.

How this was built

4 source records were collected, matched and used to prepare the report above.

  • NVD (NIST) database
  • GitHub Advisory Database database
  • OSV.dev database
  • CVE.org database
Unified report
Prototype Pollution Vulnerability in toml-node TOML Parser (CVE-2026-114142)
1 article · 4 sources cited
Revision history
  1. Generated
  2. Published
  3. Generated
  4. Published
  5. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email