Storybook Dev Server Vulnerable to WebSocket Hijacking

Summary

CVECVE-2026-27148
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-02-25 22:16:25 UTC
Updated2026-07-15 02:19:06 UTC
DescriptionStorybook is a frontend workshop for building user interface components and pages in isolation. Prior to versions 7.6.23, 8.6.17, 9.1.19, and 10.2.10, the WebSocket functionality in Storybook's dev server, used to create and update stories, is vulnerable to WebSocket hijacking. This vulnerability only affects the Storybook dev server; production builds are not impacted. Exploitation requires a developer to visit a malicious website while their local Storybook dev server is running. Because the WebSocket connection does not validate the origin of incoming connections, a malicious site can silently send WebSocket messages to the local instance without any further user interaction. If the Storybook dev server is intentionally exposed publicly (e.g. for design reviews or stakeholder demos) the risk is higher, as no malicious site visit is required. Any unauthenticated attacker can send WebSocket messages to it directly. The vulnerability affects the WebSocket message handlers for creating and saving stories. Both are vulnerable to injection via unsanitized input in the componentFilePath field, which can be exploited to achieve persistent XSS or Remote Code Execution (RCE). Versions 7.6.23, 8.6.17, 9.1.19, and 10.2.10 contain a fix for the issue.

Risk And Classification

Primary CVSS: v4.0 8.9 HIGH from [email protected]

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Problem Types: CWE-74 | CWE-79 | CWE-346 | CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | CWE-346 Origin Validation Error


VersionSourceTypeScoreSeverityVector
4.0[email protected]Secondary8.9HIGHCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/C...
4.0CNADECLARED8.9HIGHCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
3.1[email protected]Primary9.6CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
3.1ADPCVSS8.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H
3.10b0ca135-0b70-47e7-9f44-1890c2a1c46cSecondary8.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H

CVSS v4.0 Breakdown

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Confidentiality
High
Integrity
High
Availability
High
Sub Conf.
High
Sub Integrity
High
Sub Availability
High

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Storybook Storybook All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Storybookjs Storybook affected < 7.6.23 Not specified
CNA Storybookjs Storybook affected >= 8.1.0, < 8.6.17 Not specified
CNA Storybookjs Storybook affected >= 9.0.0, < 9.1.19 Not specified
CNA Storybookjs Storybook affected >= 10.0.0, < 10.2.10 Not specified
ADP Red Hat Red Hat Enterprise Linux 10 Not specified Not specified
ADP Red Hat Red Hat Enterprise Linux 9 Not specified Not specified
ADP Red Hat Streams For Apache Kafka 2 Not specified Not specified
ADP Red Hat Streams For Apache Kafka 3 Not specified Not specified

References

ReferenceSourceLinkTags
github.com/storybookjs/storybook/releases/tag/v10.2.10 [email protected] github.com Release Notes
github.com/storybookjs/storybook/commit/54689a8add18ea75d628c540f4bc6775... [email protected] github.com Patch
github.com/storybookjs/storybook/commit/b8cfa77c73940c140acdcd8a06ab1ea9... [email protected] github.com Patch
github.com/storybookjs/storybook/releases/tag/v9.1.19 [email protected] github.com Release Notes
github.com/storybookjs/storybook/security/advisories/GHSA-mjf5-7g4m-gx5w [email protected] github.com Vendor Advisory
access.redhat.com/security/cve/CVE-2026-27148 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
github.com/storybookjs/storybook/commit/0affdf928bd6fafbadfb1dfe22ce6104... [email protected] github.com Patch
security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27148.json 0b0ca135-0b70-47e7-9f44-1890c2a1c46c security.access.redhat.com
github.com/storybookjs/storybook/commit/d34085f39c647f5c23c3a3b2d197c186... [email protected] github.com Patch
github.com/storybookjs/storybook/releases/tag/v7.6.23 [email protected] github.com Release Notes
github.com/storybookjs/storybook/releases/tag/v8.6.17 [email protected] github.com Release Notes
bugzilla.redhat.com/show_bug.cgi 0b0ca135-0b70-47e7-9f44-1890c2a1c46c bugzilla.redhat.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Additional Advisory Data

SourceTimeEvent
ADP2026-02-25T22:01:56.453ZReported to Red Hat.
ADP2026-02-25T21:46:48.967ZMade public.
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report