toml is vulnerable to Prototype Pollution
73
CVE Score
High
Prototype Pollution
toml.parse() writes a property onto Object.prototype for every object in the process when a document pairs a dotted or quoted key with a table array header whose rendered path collides with that key's bookkeeping string. The collision lets addTableArray() clear an unrelated key's redefinition guard. A later dotted key then reaches the prototype chain through a Date value, because assign() writes target[lastKey] without checking that target is a table the compiler created. The fix tags every compiler created table and array with its origin so a key path can only pass through containers the compiler created.
Upgrade the toml library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
4.1.2 - 5.0.0
Fixed in 5.0.1toml is vulnerable to Prototype Pollution in versions 4.1.2 - 5.0.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.