toml-node: Prototype pollution: parsing a TOML document can write to Object.prototype
Impact
toml-node versions prior to 5.0.1 have a prototype pollution vulnerability, allowing an attacker to write properties to Object.prototype when parsing a TOML document. This occurs due to a flaw in the quoteDottedString function. The issue is fixed in version 5.0.1.
Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.Affected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
BinaryMuse · GitHub_M
toml-node
1 range
BinaryMuse · GitHub_M
toml-node
Compare with this publisher’s ranges. This does not inspect your installation.
affected
< 5.0.1
Other versions: unknown
Original source 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.
Inside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
CVE-2026-114142View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.
cve.new JSON →Underlying weaknesses
The source’s classification of what caused the vulnerability.
CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
GitHub_M
Contributing organizations · 2
Assigning organization
Additional data publisher
What changed
Follow changesLarge field values are marked as truncated previews. Original source snapshots remain retained.