Intel

AIKIDO-2026-424254

@storybook/addon-vitest is vulnerable to Code Injection

Code InjectionGHSA-px85-f4q5-jh77 Published Yesterday

88

High Risk

This Affects:

JS@storybook/addon-vitest
9.0.0 - 9.1.20
Fixed in 9.1.21
10.0.0 - 10.6.1
Fixed in 10.6.2
Are you affected? Scan for Free

TL;DR

@storybook/addon-vitest runs story tests in the browser and leaves Vitest file writes and command execution enabled. A host on the local network that writes a story through the dev server can then run that story and execute code on the developer machine. Patched versions disable Vitest file writes and command execution unless the Vitest config sets those permissions.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run Storybook tests with this addon.

Background info

@storybook/addon-vitest is vulnerable to Code Injection in versions 9.0.0 - 9.1.20 and 10.0.0 - 10.6.1.

How to fix this

Upgrade the @storybook/addon-vitest library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform