The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-27148

CVE-2026-27148: Storybook WebSocket Hijacking RCE Flaw

CVE-2026-27148 is a WebSocket hijacking vulnerability in Storybook dev server that enables remote code execution through unsanitized input. This article covers technical details, affected versions, and mitigation steps.

Published: February 27, 2026

CVE-2026-27148 Overview

CVE-2026-27148 is a high-severity WebSocket hijacking vulnerability in Storybook, a popular frontend workshop for building UI components in isolation. The vulnerability affects the WebSocket functionality in Storybook's development server, which is used to create and update stories. Due to missing origin validation on incoming WebSocket connections, attackers can hijack the communication channel to inject malicious payloads that can lead to persistent Cross-Site Scripting (XSS) or Remote Code Execution (RCE).

Critical Impact

This vulnerability enables unauthenticated attackers to achieve persistent XSS or RCE by exploiting unsanitized input in the componentFilePath field through WebSocket message handlers. The risk is significantly elevated when Storybook dev servers are intentionally exposed for design reviews or demos.

Affected Products

  • Storybook versions prior to 7.6.23
  • Storybook versions prior to 8.6.17
  • Storybook versions prior to 9.1.19
  • Storybook versions prior to 10.2.10

Discovery Timeline

  • February 25, 2026 - CVE-2026-27148 published to NVD
  • February 25, 2026 - Last updated in NVD database

Technical Details for CVE-2026-27148

Vulnerability Analysis

This vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component) exists in the WebSocket message handlers responsible for creating and saving stories in Storybook's development server. The core issue is the lack of origin validation on WebSocket connections, combined with unsanitized input in the componentFilePath field.

When a developer runs a local Storybook dev server and visits a malicious website, that website can silently establish a WebSocket connection to the local Storybook instance. Since no origin validation is performed, the malicious site can send crafted WebSocket messages directly to the dev server without any user interaction beyond the initial site visit.

The exploitation scenario becomes more severe when Storybook dev servers are publicly exposed for design reviews or stakeholder demonstrations, as any unauthenticated attacker can directly send malicious WebSocket messages without requiring the victim to visit a compromised site.

Root Cause

The root cause is twofold: first, the WebSocket server does not validate the Origin header of incoming connections, allowing cross-origin WebSocket requests from any domain. Second, the componentFilePath field in story creation and save handlers is not properly sanitized, enabling injection attacks. This combination allows attackers to inject malicious content that persists through the story files, leading to XSS when stories are rendered, or RCE through path traversal and code injection in the generated component files.

Attack Vector

The attack follows a network-based vector requiring some user interaction. In the most common scenario, an attacker hosts a malicious website that establishes a WebSocket connection to localhost on the default Storybook port when a developer visits the site. The malicious site then sends crafted WebSocket messages to the story creation handlers with a malicious componentFilePath payload. Since the input is not sanitized, the attacker can inject arbitrary JavaScript code that executes in the context of the Storybook application, or craft paths that lead to arbitrary file writes resulting in code execution.

The fix implements WebSocket token authentication (wsToken) that must be provided in channel options. Below are the key patches that address this vulnerability:

typescript
// Security patch implementing wsToken validation
// Source: code/core/src/builder-manager/utils/framework.ts

export const buildFrameworkGlobalsFromOptions = async (options: Options) => {
  const globals: Record<string, any> = {};

  const { builder, channelOptions } = await options.presets.apply('core');

  const frameworkName = await getFrameworkName(options);
  const rendererName = await extractProperRendererNameFromFramework(frameworkName);

  if (options.configType === 'DEVELOPMENT') {
    // Manager only needs the token currently, so we don't pass any other channel options.
    globals.CHANNEL_OPTIONS = { wsToken: channelOptions?.wsToken };
  }

  if (rendererName) {
    globals.STORYBOOK_RENDERER =
      (await extractProperRendererNameFromFramework(frameworkName)) ?? undefined;

Source: GitHub Commit

typescript
// Channel options now include WebSocket token for authentication
// Source: code/core/src/channels/index.ts

import type { ChannelTransport, Config } from './types';
import { WebsocketTransport } from './websocket';

const { CHANNEL_OPTIONS, CONFIG_TYPE } = global;

export * from './main';

Source: GitHub Commit

Detection Methods for CVE-2026-27148

Indicators of Compromise

  • Unexpected WebSocket connections to the Storybook dev server from external origins or unfamiliar IP addresses
  • Modified story files containing suspicious JavaScript code or unexpected componentFilePath values
  • Browser developer tools showing WebSocket messages from domains other than localhost or the expected development environment
  • New or modified component files in unexpected directories, particularly those with suspicious code patterns

Detection Strategies

  • Monitor WebSocket traffic to Storybook dev server instances for connections originating from external IP addresses or suspicious origins
  • Implement file integrity monitoring on story and component directories to detect unauthorized modifications
  • Review browser console and network logs for WebSocket connections established during suspicious timeouts or from untrusted domains
  • Deploy network segmentation to isolate development servers and log any inbound connections to Storybook ports (typically 6006)

Monitoring Recommendations

  • Enable verbose logging on Storybook dev servers and pipe logs to a centralized SIEM for correlation and alerting
  • Set up alerts for any external inbound traffic to development server ports in your network monitoring solution
  • Conduct periodic code reviews of story files and component paths for signs of injection or unexpected modifications
  • Use SentinelOne's real-time behavioral detection to identify suspicious file write operations in development directories

How to Mitigate CVE-2026-27148

Immediate Actions Required

  • Upgrade Storybook to patched versions: 7.6.23, 8.6.17, 9.1.19, or 10.2.10 depending on your major version
  • Avoid exposing Storybook dev servers publicly; use VPNs or authenticated proxies for remote access during design reviews
  • Restrict network access to development servers using firewall rules or network segmentation
  • Review recently created or modified story files for signs of malicious injection

Patch Information

Storybook has released security patches across all supported major versions. The fix implements WebSocket token authentication (wsToken) that validates incoming connections and prevents unauthorized WebSocket message handling. Updated versions include:

  • Storybook v7.6.23
  • Storybook v8.6.17
  • Storybook v9.1.19
  • Storybook v10.2.10

For full technical details, refer to the GitHub Security Advisory GHSA-mjf5-7g4m-gx5w.

Workarounds

  • Bind the Storybook dev server to localhost only and never expose it on 0.0.0.0 or public interfaces
  • Use a reverse proxy with authentication (e.g., nginx with basic auth) if remote access is required
  • Implement browser extensions or corporate policies that restrict WebSocket connections from untrusted origins
  • Run Storybook dev servers in isolated containers or VMs to limit the impact of potential exploitation
bash
# Configuration example: Restrict Storybook to localhost only
# In your package.json scripts or command line:
npx storybook dev --host 127.0.0.1 --port 6006

# Using firewall rules to block external access (Linux/iptables)
iptables -A INPUT -p tcp --dport 6006 -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 6006 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechStorybook

  • SeverityHIGH

  • CVSS Score8.9

  • EPSS Probability0.36%

  • Known ExploitedNo
  • CVSS 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/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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-74
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Change

  • GitHub Commit Improvement

  • GitHub Commit Fix

  • GitHub Release v10.2.10

  • GitHub Release v7.6.23

  • GitHub Release v8.6.17

  • GitHub Release v9.1.19

  • GitHub Security Advisory GHSA-mjf5-7g4m-gx5w
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English