CVE-2026-27148
published high CVSS 4.0 · 8.9Storybook Dev Server Vulnerable to WebSocket Hijacking
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| storybookjs | — | storybook< 7.6.23 · >= 8.1.0, < 8.6.17 · >= 9.0.0, < 9.1.19 · >= 10.0.0, < 10.2.10 | Affected | Not stated | GitHub_M |
| Red Hat Enterprise Linux | 9, 10 | grafana | Unaffected | Not required | redhat-SADP |
| Red Hat | — | com.github.streamshub-consolestreams for Apache Kafka 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | com.github.streamshub-consolestreams for Apache Kafka 3 | Affected | Not stated | redhat-SADP |
Description
Storybook 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.
A flaw was found in Storybook's development server. This vulnerability allows a remote attacker to achieve Remote Code Execution or persistent Cross-Site Scripting by exploiting WebSocket hijacking. The attack can occur if a developer visits a malicious website while their local Storybook development server is active, or directly by an unauthenticated attacker if the server is publicly accessible. This is due to insufficient validation of WebSocket connection origins and unsanitized input, leading to significant security risks.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.9 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| storybookjs | storybook | < 7.6.23 (affected)>= 8.1.0, < 8.6.17 (affected)>= 9.0.0, < 9.1.19 (affected)>= 10.0.0, < 10.2.10 (affected) | GitHub_M · cna |
| Red Hat | Red Hat Enterprise Linux 10 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat-SADP · adp |
| Red Hat | streams for Apache Kafka 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | streams for Apache Kafka 3 | Default: affected | redhat-SADP · adp |
Weaknesses
3- 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
References
12- https://access.redhat.com/security/cve/CVE-2026-27148
- RHBZ#2442784 https://bugzilla.redhat.com/show_bug.cgi?id=2442784
- https://github.com/storybookjs/storybook/commit/0affdf928bd6fafbadfb1dfe22ce6104805e10e8
- https://github.com/storybookjs/storybook/commit/54689a8add18ea75d628c540f4bc677592a1e685
- https://github.com/storybookjs/storybook/commit/b8cfa77c73940c140acdcd8a06ab1ea913c44761
- https://github.com/storybookjs/storybook/commit/d34085f39c647f5c23c3a3b2d197c18602fcf876
- https://github.com/storybookjs/storybook/releases/tag/v10.2.10
- https://github.com/storybookjs/storybook/releases/tag/v7.6.23
- https://github.com/storybookjs/storybook/releases/tag/v8.6.17
- https://github.com/storybookjs/storybook/releases/tag/v9.1.19
- https://github.com/storybookjs/storybook/security/advisories/GHSA-mjf5-7g4m-gx5w
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27148.json
Provider assertions
3GitHub_M · cna
Storybook Dev Server Vulnerable to WebSocket Hijacking
redhat-SADP · adp
storybook: Storybook: Remote Code Execution via WebSocket Hijacking
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1ea928a99cfee7d90cc5295e759282ad38f3165e8fd7c073767edf5dd45c4f36
- Ingested
- 23 Sep 2026, 09:07:24 UTC
- Source record
- Official CVE record