style-dictionary is vulnerable to Prototype Pollution
84
High Risk
The convertTokenData utility builds a nested object from token keys when called with object output. It splits each token key on dots and descends into the growing object without rejecting inherited property names such as constructor or prototype. A token key beginning with constructor.prototype therefore reaches Object.prototype, letting externally influenced token data mutate global prototype state in the Node.js process and impacting integrity and availability. The fix constructs the output on a null-prototype object so traversal can no longer escape into Object.prototype.
You are affected if you are using a version that falls within the vulnerable range and you convert externally influenced token data into object output.
style-dictionary is vulnerable to Prototype Pollution in versions 5.5.0 - 5.5.0.
Upgrade the style-dictionary library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant