@storybook/experimental-addon-test@0.0.0-pr-30265-sha-4af18ebe

Integrate Vitest with Storybook

Direct Vulnerabilities

Known vulnerabilities in the @storybook/experimental-addon-test 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
  • C
Unintended Proxy or Intermediary ('Confused Deputy')

@storybook/experimental-addon-test is an Integrate Vitest with Storybook

Affected versions of this package are vulnerable to Unintended Proxy or Intermediary ('Confused Deputy') via the postMessage channel handler in code/core/src/channels/postmessage/index.ts, which does not validate the origin of incoming messages. An attacker who can cause a user to visit a malicious page can send arbitrary channel events to the Storybook preview iframe, enabling cross-origin control of the Storybook instance and potentially achieving full compromise of confidentiality, integrity, and availability of the preview context and the surrounding system.

Note: This is only exploitable when the Storybook dev server is accessible over the network and the user visits a page on a different origin that embeds or communicates with the Storybook iframe.

How to fix Unintended Proxy or Intermediary ('Confused Deputy')?

Upgrade @storybook/experimental-addon-test to version 8.6.19 or higher.

<8.6.19
  • H
Insecure Default Initialization of Resource

@storybook/experimental-addon-test is an Integrate Vitest with Storybook

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/experimental-addon-test to version 8.6.19 or higher.

<8.6.19