@storybook/addon-vitest@11.0.0-alpha.4

Storybook Vitest addon: Blazing fast component testing using stories

  • latest version

    10.6.3

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    3 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @storybook/addon-vitest package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Insecure Default Initialization of Resource

    @storybook/addon-vitest is a Storybook Vitest addon: Blazing fast component testing using stories

    Affected versions of this package are vulnerable to Insecure Default Initialization of Resource via the Vitest plugin in storybookTest, where allowWrite and allowExec permissions are not applied to the resolved project config when using Vitest 5. Vitest 5 reads file-write and command-execution permissions from test.api rather than test.browser.api, so the plugin's defaults of false for both permissions are silently ignored, leaving story code running in the browser able to write files and execute commands in Node through the Vitest browser API whenever the server is bound to loopback.

    How to fix Insecure Default Initialization of Resource?

    Upgrade @storybook/addon-vitest to version 9.1.21, 10.6.2, 11.0.0-alpha.6 or higher.

    >=9.0.0 <9.1.21>=10.0.0 <10.6.2>=11.0.0-alpha.0 <11.0.0-alpha.6