Arbitrary Code Injection Affecting storybook package, versions <7.6.23>=8.0.0-alpha.0 <8.6.17>=9.0.0-alpha.0 <9.1.19>=10.0.0-beta.0 <10.2.10


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-STORYBOOK-15353401
  • published26 Feb 2026
  • disclosed26 Feb 2026
  • creditAikido-Security, Rein Daelman, Robbe Verwilghen, JorianWoltjer

Introduced: 26 Feb 2026

NewCVE-2026-27148  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade storybook to version 7.6.23, 8.6.17, 9.1.19, 10.2.10 or higher.

Overview

storybook is a frontend workshop for building UI components and pages in isolation.

Affected versions of this package are vulnerable to Arbitrary Code Injection via the WebSocket message handlers for creating and saving stories, specifically through unsanitized input in the componentFilePath field. An attacker can achieve persistent code execution or inject malicious scripts by sending crafted WebSocket messages to the local development server.

Note:

This is only exploitable if a developer visits a malicious website while their local development server is running, or if the development server is intentionally exposed publicly.

CVSS Base Scores

version 4.0
version 3.1