ThinkFacility Sign in
  1. Home
  2. Security
  3. npm package (storybook)
Highnpm package (storybook)

Storybook 8 to 11 dev server: someone on your Wi-Fi can slip code into your project

Front-end developers who run storybook dev on a laptop, mostly on shared or public Wi-Fi, and especially with the Vitest addon installed.

How to fix it

You haveUpdate to
8.0.0 and later, before 8.6.19→8.6.199.0.0 and later, before 9.1.21→9.1.2110.0.0 and later, before 10.6.2→10.6.211.0.0-alpha.0 and later, before 11.0.0-alpha.6→11.0.0-alpha.6

Check your version

Which version your project has
npm ls storybook

Update

In your project
npm update storybook
npm ls storybook
Still old? A dependency pins it
npm explain storybook
Then check what's left
npm audit

If you can't update yet

Storybook says not to run an affected dev server until you've updated. A dev server that other devices on your network can't reach, such as one in a container that publishes the port only on 127.0.0.1, isn't affected, and neither is a built Storybook.

The fixed versions change some defaults. The dev server now listens only on 127.0.0.1, so other machines can't open it unless you pass --host, and the Vitest addon no longer lets browser tests write files or start processes. On Storybook 8, the same fix also covers @storybook/core and @storybook/core-server at 8.6.19.

If npm ls still shows an old version under another package, update that package, or add an "overrides" entry for this one in package.json.

Sources