Security mailing lists by PureSourceCode

CVE-2026-27148

HIGH 8.9CVSS 4.0

Storybook Dev Server is Vulnerable to WebSocket Hijacking

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.

Published
25 Feb 2026
Last modified
15 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-1385CWE-346CWE-74CWE-79
Also known as
GHSA-mjf5-7g4m-gx5w
Sources
NVDJSONOSV GHSA-mjf5-7g4m-gx5wJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 HIGH 8.9 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
OSV GitHub CVSS 4.0 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 nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.6 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
NVD 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD storybook storybook
cpe:2.3:a:storybook:storybook:*:*:*:*:*:node.js:*:*
< 7.6.23 7.6.23
NVD storybook storybook
cpe:2.3:a:storybook:storybook:*:*:*:*:*:node.js:*:*
>= 8.1.0, < 8.6.17 8.6.17
NVD storybook storybook
cpe:2.3:a:storybook:storybook:*:*:*:*:*:node.js:*:*
>= 9.0.0, < 9.1.19 9.1.19
NVD storybook storybook
cpe:2.3:a:storybook:storybook:*:*:*:*:*:node.js:*:*
>= 10.0.0, < 10.2.10 10.2.10
OSV npm storybook >= 8.1.0, < 8.6.17 8.6.17
OSV npm storybook >= 8.7.0-alpha.0, < 9.1.19 9.1.19
OSV npm storybook >= 10.0.0-beta.0, < 10.2.10 10.2.10

References

History

  • 25 Nov 2026 21:01 UTC · NVD: first stored (published 25 Feb 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Feb 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.