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
Check your version
Which version your project hasnpm ls storybook
Update
In your projectnpm update storybook npm ls storybook
npm explain storybook
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.