Description
Storybook is a frontend workshop for building user interface components and pages in isolation. From 8.0.0 until 8.6.19, 9.1.21, 10.6.2, and 11.0.0-alpha.6, the Storybook development server can expose its WebSocket authentication token to clients able to load its HTML pages over a local network. A LAN attacker can obtain the token and invoke WebSocket-backed file-writing or testing functionality. Weak story-write validation can allow code to be placed in story files. If the Storybook Vitest addon is installed with an old version of Vitest, the payload can use a Vitest API to write additional files or execute commands. Depending on the payload and local tooling, the attack can lead to code execution with the developer's privileges. This issue is fixed in 8.6.19, 9.1.21, 10.6.2, and 11.0.0-alpha.6.
Published: 2026-10-21
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote code execution via the development server's exposed WebSocket token
Action: Immediate Patch
AI Analysis

Impact

The vulnerability allows an attacker on a local network to retrieve the WebSocket authentication token that the Storybook development server provides to page clients. With this token, the attacker can write files through the server's file-writing API. Weak validation of story files can allow arbitrary code to be placed into story files. If the Vitest add-on is present and its version is outdated, the malicious payload can invoke Vitest APIs to create additional files or run commands, effectively enabling code execution under the privileges of the server’s user.

Affected Systems

Storybook for JavaScript (storybookjs:storybook) from version 8.0.0 up to 8.6.19, 9.1.21, 10.6.2, and the 11.0.0-alpha.6 release. These versions are affected; newer releases beyond 11.0.0-alpha.6 address the issue.

Risk and Exploitability

The CVSS score of 8.7 classifies this flaw as high severity. The EPSS score of < 1% indicates a low probability of exploitation. The vulnerability is not listed in CISA's KEV catalog. The attack vector requires an attacker to be on the same network segment as the development server: the attacker must HTTPGET the dev server’s HTML page to obtain the token, then open a WebSocket to perform the write operation. The lack of authentication (CWE-306) and improper path handling (CWE-22) permit the file-write operation, while the potential for code execution via the Vitest add-on introduces a higher impact (CWE-94).

Generated by OpenCVE AI on October 22, 2026 at 15:59 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Storybook to a fixed release (8.6.19, 9.1.21, 10.6.2, or 11.0.0-alpha.6 and later).
  • If upgrading immediately is not possible, block external access to the dev server by configuring a firewall, VPN, or local-host only binding so that only trusted developers can reach it.
  • If the Vitest add-on must remain installed, ensure it is upgraded to at least the version that disables remote code execution or temporarily remove the add-on while the server is running.

Generated by OpenCVE AI on October 22, 2026 at 15:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-px85-f4q5-jh77 Storybook dev server vulnerable to code injection from the local network
History

Wed, 28 Oct 2026 02:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 22 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-201
References
Metrics threat_severity

None

cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important


Thu, 22 Oct 2026 11:15:00 +0000

Type Values Removed Values Added
First Time appeared Storybookjs
Storybookjs storybook
Vendors & Products Storybookjs
Storybookjs storybook

Wed, 21 Oct 2026 17:45:00 +0000

Type Values Removed Values Added
Description Storybook is a frontend workshop for building user interface components and pages in isolation. From 8.0.0 until 8.6.19, 9.1.21, 10.6.2, and 11.0.0-alpha.6, the Storybook development server can expose its WebSocket authentication token to clients able to load its HTML pages over a local network. A LAN attacker can obtain the token and invoke WebSocket-backed file-writing or testing functionality. Weak story-write validation can allow code to be placed in story files. If the Storybook Vitest addon is installed with an old version of Vitest, the payload can use a Vitest API to write additional files or execute commands. Depending on the payload and local tooling, the attack can lead to code execution with the developer's privileges. This issue is fixed in 8.6.19, 9.1.21, 10.6.2, and 11.0.0-alpha.6.
Title Storybook dev server: devices on the same network can obtain the WebSocket token and write code into story files
Weaknesses CWE-22
CWE-306
CWE-94
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N'}


Subscriptions

Storybookjs Storybook
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-28T01:28:25.264Z

Reserved: 2026-10-20T21:53:58.472Z

Link: CVE-2026-114126

cve-icon Vulnrichment

Updated: 2026-10-28T01:28:21.077Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-21T18:17:25.130

Modified: 2026-10-28T02:17:04.940

Link: CVE-2026-114126

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-21T17:21:29Z

Links: CVE-2026-114126 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T16:00:11Z

Weaknesses
  • CWE-201

    Insertion of Sensitive Information Into Sent Data

  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-306

    Missing Authentication for Critical Function

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')