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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.9
- **CVSS:** 8.9 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Active; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.75% (percentile 51, 2026-11-26)
- **CWE:** CWE-74, CWE-79
- **Aliases:** GHSA-mjf5-7g4m-gx5w
- **Published:** 2026-02-25T21:46:48.967Z
- **Modified:** 2026-07-15T02:19:06.850Z

## Who should check

- Projects that depend on npm package storybook (\>= 8.1.0, \< 8.6.17)
- Anyone running storybookjs storybook \< 7.6.23; \>= 8.1.0, \< 8.6.17; \>= 9.0.0, \< 9.1.19; \>= 10.0.0, \< 10.2.10

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

## Affected and fixed versions

- npm `storybook`: affected \>= 8.1.0, \< 8.6.17; fixed 8.6.17, 9.1.19, 10.2.10 (osv)
- storybookjs storybook: \< 7.6.23; \>= 8.1.0, \< 8.6.17; \>= 9.0.0, \< 9.1.19; \>= 10.0.0, \< 10.2.10 (cvelist)

## Mitigation

- Upgrade storybook to one of 8.6.17, 9.1.19, 10.2.10 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-27148. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-27148.md
Affected: storybook >= 8.1.0, < 8.6.17
Fixed in: 8.6.17, 9.1.19, 10.2.10

Steps:
1. Search this machine and project for storybook (npm), storybookjs storybook: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-27148 being exploited?

There is no confirmed exploitation: CVE-2026-27148 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.75% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-27148?

High: CVSS 8.9 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-27148?

storybook \>= 8.1.0, \< 8.6.17.

### Is there a fix for CVE-2026-27148?

Yes. Fixed in 8.6.17, 9.1.19, 10.2.10. Upgrade storybook to one of 8.6.17, 9.1.19, 10.2.10 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-27148?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-27148>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-mjf5-7g4m-gx5w> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-27148> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-27148>
