CVE-2026-114142
High 8.8No known exploitationFix availabletoml-node: Prototype pollution: parsing a TOML document can write to Object.prototype
Vendor advisory: GHSA-h895-cgqg-jf52
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 44% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-1321
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| BinaryMuse | toml-node | < 5.0.1 | Not documented | CVE Program |
| npm | toml | all versions up to and including 5.0.0 | 5.0.1 | GitHub Advisory Database |
Timeline
Disclosure
CVE record published by GitHub_M
Source: CVE Program (opens in a new tab)
Patch
Fix documented by GitHub Advisory Database
Vendor guidance and references
- https://github.com/BinaryMuse/toml-node/commit/609c873fffea0a27ebe5b4dd098eed2b3daf3606 (opens in a new tab)x_refsource_misc
- https://github.com/BinaryMuse/toml-node/releases/tag/v5.0.1 (opens in a new tab)x_refsource_misc
- https://github.com/BinaryMuse/toml-node/security/advisories/GHSA-h895-cgqg-jf52 (opens in a new tab)x_refsource_confirm
- GitHub Advisory GHSA-h895-cgqg-jf52 (opens in a new tab)github-advisory