REDHAT-BUG-2442784: XSS

Published Feb 25, 2026
·
Updated

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 Software

1 affected component
Storybook Storybook<7.6.23, <8.6.17, <9.1.19, <10.2.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Storybook dev server to a version that resolves this vulnerability.

    Fixed in 7.6.23
  2. Upgrade

    Upgrade Storybook dev server to a version that resolves this vulnerability.

    Fixed in 8.6.17
  3. Upgrade

    Upgrade Storybook dev server to a version that resolves this vulnerability.

    Fixed in 9.1.19
  4. Upgrade

    Upgrade Storybook dev server to a version that resolves this vulnerability.

    Fixed in 10.2.10
  5. Compensating control

    Do not intentionally expose the local Storybook dev server publicly (e.g., for design reviews/stakeholder demos), since higher risk applies when the dev server is reachable beyond the local host.

Event History

Feb 25, 2026
Data Sourced
via Red Hat·10:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2442784?

The severity of REDHAT-BUG-2442784 is rated high with a score of 7.

2

How do I fix REDHAT-BUG-2442784?

To fix REDHAT-BUG-2442784, upgrade Storybook to versions 7.6.23, 8.6.17, 9.1.19, or 10.2.10.

3

What impact does REDHAT-BUG-2442784 have on users?

REDHAT-BUG-2442784 allows for WebSocket hijacking, which can potentially compromise user data and application integrity.

4

Which versions of Storybook are affected by REDHAT-BUG-2442784?

Versions prior to 7.6.23, 8.6.17, 9.1.19, and 10.2.10 of Storybook are affected by REDHAT-BUG-2442784.

5

What is the nature of the vulnerability in REDHAT-BUG-2442784?

The vulnerability in REDHAT-BUG-2442784 involves WebSocket functionality that can be exploited for cross-site scripting (XSS) attacks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203