Insecure Default Initialization of Resource Affecting @storybook/addon-vitest package, versions >=9.0.0 <9.1.21>=10.0.0 <10.6.2>=11.0.0-alpha.0 <11.0.0-alpha.6


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.48% (41st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-STORYBOOKADDONVITEST-21460710
  • published23 Oct 2026
  • disclosed22 Oct 2026
  • creditKimiSecurityTeam, christos-cantina-security

Introduced: 22 Oct 2026

NewCVE-2026-114126  (opens in a new tab)
CWE-1188  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-306  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

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

Overview

@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.

CVSS Base Scores

version 4.0
version 3.1