# CVE-2026-27148: Storybook Dev Server Vulnerable to WebSocket Hijacking

- Severity: High 8.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-01)
- Published: 2026-02-25T21:46:48.967Z
- Modified: 2026-07-15T02:19:06.850Z
- Also known as: GHSA-mjf5-7g4m-gx5w
- Weaknesses: CWE-74, CWE-79, CWE-346, CWE-1385
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- storybookjs storybook: < 7.6.23; >= 8.1.0, < 8.6.17; >= 9.0.0, < 9.1.19; >= 10.0.0, < 10.2.10
- grafana: no versions given
- com.github.streamshub-console: no versions given
- storybook (npm): from 8.1.0 before 8.6.17; from 8.7.0-alpha.0 before 9.1.19; from 10.0.0-beta.0 before 10.2.10
- storybook storybook: before 7.6.23; from 8.1.0 before 8.6.17; from 9.0.0 before 9.1.19; from 10.0.0 before 10.2.10

## Every score

- GitHub_M: CVSS:4.0 8.9 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`
- redhat-SADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H`
- GitHub: CVSS:4.0 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`
- NVD: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/storybookjs/storybook/security/advisories/GHSA-mjf5-7g4m-gx5w> (vendor-advisory, web)
- <https://github.com/storybookjs/storybook/commit/0affdf928bd6fafbadfb1dfe22ce6104805e10e8> (patch, web)
- <https://github.com/storybookjs/storybook/commit/54689a8add18ea75d628c540f4bc677592a1e685> (patch, web)
- <https://github.com/storybookjs/storybook/commit/b8cfa77c73940c140acdcd8a06ab1ea913c44761> (patch, web)
- <https://github.com/storybookjs/storybook/commit/d34085f39c647f5c23c3a3b2d197c18602fcf876> (patch, web)
- <https://github.com/storybookjs/storybook/releases/tag/v10.2.10> (release-notes, web)
- <https://github.com/storybookjs/storybook/releases/tag/v7.6.23> (release-notes, web)
- <https://github.com/storybookjs/storybook/releases/tag/v8.6.17> (release-notes, web)
- <https://github.com/storybookjs/storybook/releases/tag/v9.1.19> (release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-27148> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2442784> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27148.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27148> (advisory)
- <https://github.com/storybookjs/storybook> (package)

## Sources

- CVE List: [CVE-2026-27148](https://www.cve.org/CVERecord?id=CVE-2026-27148), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-mjf5-7g4m-gx5w](https://github.com/advisories/GHSA-mjf5-7g4m-gx5w), CC-BY-4.0, modified 2026-02-26
- NVD: [CVE-2026-27148](https://nvd.nist.gov/vuln/detail/CVE-2026-27148), Public domain, modified 2026-07-15

---

Page: https://cve.day/CVE-2026-27148 · Whole record: https://cve.day/CVE-2026-27148.json · Rebuilt by cve.day 2026-11-25T22:59:14.903Z
