Skip to main content

CVE-2026-114126 — Vulnerability in storybook — CVE Details

HIGH

Storybook dev server vulnerable to code injection from the local network

Published October 22, 2026Updated October 22, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.67%). Schedule for your next planned update.

Does your project use an affected storybook version?

Paste your package-lock.json to check it for CVE-2026-114126 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my package-lock.json

Summary

Summary: The Storybook dev server exposes its WebSocket authentication token to any client that can load its HTML pages. Any host on a LAN can open a Storybook app by IP address, and therefore obtain the token. The WebSocket can be used to inject code into story files or to create new files. Under the right circumstances, an attacker can execute code on the machine of a developer connected on the same LAN.

Who is impacted?

You are impacted if you run a Storybook dev server whilst connected on an untrusted local network, or to a WiFi access point posing as a trusted network. The impact of this advisory is more important if you have the Vitest addon installed and are using an old version of Vitest.

You are not impacted if:

  • You run a dev server in an environment that other devices on your network cannot reach (e.g. a container that does not publish the Storybook port, or publishes it only on 127.0.0.1)
  • You run a dev server whilst connected to a trusted local network
  • You serve a built version of Storybook on your machine

Recommended actions

Upgrade Storybook

Storybook has released patched versions of all affected major Storybook versions that fix all the vulnerabilities necessary for the worst-case scenario above to occur.

Upgrade to a patched version listed below before running storybook dev again. If you cannot upgrade immediately, do not run an affected Storybook dev server until you can apply the fix.

  • 11.0.0-alpha.6
  • 10.6.2
  • 9.1.21
  • 8.6.19

Review potentially breaking changes

Due to the exceptional nature of the reported vulnerabilities, the Storybook team has decided to change the default behavior of Storybook, including versions 8 and 9, for several network-related features that are not essential to most Storybook users' workflow. If your team relies on the affected features, this document explains how to fall back to the previous behavior.

Storybook now only listens on 127.0.0.1 by default

By default, the Storybook dev server no longer binds to all network interfaces on your machine. It only binds to the loopback address 127.0.0.1. You can still open it at http://localhost:6006. This prevents other devices on the same network from seeing your Storybook server.

To share a Storybook with others, consider publishing it to Chromatic (free). To share it on a LAN without exposing the dev server, build a static Storybook with storybook build and serve the output folder with any static file server.

To share a live Storybook running in dev mode, you can use the --host CLI option to bind to the LAN IP you want to share Storybook on, e.g. storybook dev --host 192.168.0.110. Host and origin validation stays enabled with this option. If you use --host 0.0.0.0 instead, also set core.allowedHosts to the hostnames you will use. Without it, host and origin validation is disabled, and Storybook shows a warning and asks you to confirm before it starts.

Consider using a firewall to restrict incoming packets to known colleague IPs, and avoid using --host on an untrusted WiFi network.

The Vitest addon now disables browser.api.allowWrite and browser.api.allowExec

Storybook no longer allows code running in Vitest Browser mode to write to the developer’s machine or execute other processes. In the unlikely scenario that you rely on this capability in your tests, you can manually re-enable these APIs in your Vitest config.

The saveStoryRequest event validates input more strictly

Storybook strengthened input validation in saveStoryRequest, so addons and the Storybook UI can now only write serialized args and story titles. It is no longer possible to exploit input validation weaknesses to e.g. write play functions with a custom addon.

If you develop an addon that writes or edits files on users’ behalf, reach out to the Storybook team to get advice on security best practice.

Disclosure timeline

On August 19th, the Storybook team received a responsible disclosure showing that the WebSocket token can be stolen by an attacker sharing a LAN with a Storybook dev server.

The disclosure identified several actions an attacker can do. An attacker can bypass input validation to write a payload in a story file.

They can then trigger a test run via the WebSocket. If the Vitest addon is installed, the payload can exploit a Vitest API to write other files, with more exploit logic to the user’s filesystem.

Depending on the exploit content, where the file is written, and what software the developer uses, that exploit could then be executed.

Advisory Timeline

  • First published October 22, 2026 (35 days ago).
  • Last revised October 22, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update storybook to 8.6.19 or later
npm install storybook@8.6.19
npm
Update storybook to 9.1.21 or later
npm install storybook@9.1.21
npm
Update storybook to 10.6.2 or later
npm install storybook@10.6.2
npm
Update storybook to 11.0.0-alpha.6 or later
npm install storybook@11.0.0-alpha.6
npm
Update @storybook/core-server to 8.6.19 or later
npm install @storybook/core-server@8.6.19
npm
Update @storybook/addon-vitest to 10.6.2 or later
npm install @storybook/addon-vitest@10.6.2
npm
Update @storybook/experimental-addon-test to 8.6.19 or later
npm install @storybook/experimental-addon-test@8.6.19
npm
Update @storybook/addon-mcp to 11.0.0-alpha.6 or later
npm install @storybook/addon-mcp@11.0.0-alpha.6
npm
Update @storybook/addon-mcp to 10.6.2 or later
npm install @storybook/addon-mcp@10.6.2
npm
Update @storybook/core to 8.6.19 or later
npm install @storybook/core@8.6.19
npm
Update @storybook/addon-vitest to 11.0.0-alpha.6 or later
npm install @storybook/addon-vitest@11.0.0-alpha.6
npm
Update @storybook/addon-vitest to 9.1.21 or later
npm install @storybook/addon-vitest@9.1.21

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (12)

Affects 1 ecosystem: npm (6).

PackageFixed In
storybook npm · Affected: All versions8.6.19
storybook npm · Affected: All versions9.1.21
storybook npm · Affected: All versions10.6.2
storybook npm · Affected: All versions11.0.0-alpha.6
@storybook/core-server npm · Affected: All versions8.6.19
@storybook/addon-vitest npm · Affected: All versions10.6.2
@storybook/experimental-addon-test npm · Affected: All versions8.6.19
@storybook/addon-mcp npm · Affected: All versions11.0.0-alpha.6
@storybook/addon-mcp npm · Affected: All versions10.6.2
@storybook/core npm · Affected: All versions8.6.19
@storybook/addon-vitest npm · Affected: All versions11.0.0-alpha.6
@storybook/addon-vitest npm · Affected: All versions9.1.21

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Adjacent
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Frequently Asked Questions

What is CVE-2026-114126?
Storybook dev server vulnerable to code injection from the local network. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2026-114126?
CVE-2026-114126 affects storybook, @storybook/core-server and @storybook/addon-vitest (and 3 more). It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-114126 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.67%
EPSS percentile: 47.2

This is a below-median EPSS score — only 47.2% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-px85-f4q5-jh77

Related CVEs

  • CVE-2026-114125
    CRITICAL

    Storybook: Missing origin validation in Storybook preview allows code injection from malicious websites

  • CVE-2026-83816
    HIGH

    CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE

  • CVE-2026-83817
    HIGH

    CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution

  • CVE-2026-27148
    HIGH

    Storybook Dev Server is Vulnerable to WebSocket Hijacking

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json