{"cve":"CVE-2026-27148","nvd":{"published":"2026-02-25T22:16:25.317","modified":"2026-07-15T02:19:06.850","status":"Modified","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.","cvss_v4":{"vector":"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","score":8.9},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6},"cwes":["CWE-74","CWE-79","CWE-346"],"references":["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"],"products":["storybook:storybook"],"source":"nvd","synced_at":"2026-10-19T22:24:17.937441719+00:00"},"epss":{"cve":"CVE-2026-27148","score":0.00632,"percentile":0.50293,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-mjf5-7g4m-gx5w","url":"https://osv.dev/vulnerability/GHSA-mjf5-7g4m-gx5w","summary":"Storybook Dev Server is Vulnerable to WebSocket Hijacking","modified":"2026-02-26T15:32:56.650508Z","packages":[{"ecosystem":"npm","name":"storybook","purl":"pkg:npm/storybook","ranges":[">=8.1.0 <8.6.17"],"fixed":["8.6.17"]},{"ecosystem":"npm","name":"storybook","purl":"pkg:npm/storybook","ranges":[">=8.7.0-alpha.0 <9.1.19"],"fixed":["9.1.19"]},{"ecosystem":"npm","name":"storybook","purl":"pkg:npm/storybook","ranges":[">=10.0.0-beta.0 <10.2.10"],"fixed":["10.2.10"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}