toml-node でプロトタイプ汚染の脆弱性、Object.prototype に値を書き込まれるおそれ
Summary
toml-node の TOML 解析処理に、攻撃者が Object.prototype へ任意のプロパティを書き込めるプロトタイプ汚染の脆弱性が見つかりました。プロセス内の他のオブジェクトにも注入された値が継承されるおそれがあり、CVSS v4 のスコアは 8.8 です。修正版は 5.0.1 です。5.0.1 以降へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
toml-node の TOML 解析処理に、攻撃者が Object.prototype へ任意のプロパティを書き込めるプロトタイプ汚染の脆弱性が見つかりました。プロセス内の他のオブジェクトにも注入された値が継承されるおそれがあり、CVSS v4 のスコアは 8.8 です。修正版は 5.0.1 です。5.0.1 以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| BinaryMusetoml-node | — | Not listed |
| npmtome |
< 5.0.1→ 5.0.1 |
5.0.1 |
| npmtoml |
< 5.0.1→ 5.0.1 |
5.0.1 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com