← Terug naar overzicht

A prototype pollution vulnerability exists in the toml-node TOML parser for Node.js prior to version 4.1.2. The toml.parse() function in lib/compiler.js can be exploited via specially crafted table paths containing __proto__ segments, allowing attackers to traverse into Number.prototype and Object.prototype. A mismatch between how valueAssignments records paths (comma-joined) and how deepRef checks them (dot-joined) causes the duplicate-key guard to be bypassed, enabling attacker-controlled keys to be written to Object.prototype. Additionally, the addTableArray function can erase guard state, enabling a secondary attack vector. Injected properties propagate across the entire Node.js process, potentially enabling denial of service, authorization or logic bypass, or remote code execution if a suitable gadget exists in the application. The vulnerability has been patched in toml-node version 4.1.2.

Affected products

  • toml-node

Related CVE's

  • CVE-2026-63376

Categories

  • Supply Chain & Dependencies
  • Web Technologies