Storybook: Missing origin validation in Storybook preview allows code injection from malicious websites (storybookjs storybook)

CVE-2026-114125
HIGH 8.6

At a glance

Source
NVD
EPSS
EPSS 0.67 % · percentile 53 ()
State
PUBLISHED
Published
Updated
Assigner
GitHub_M
Affected products
storybookjs · storybook
NVD status
Awaiting Analysis

Description

Storybook is a frontend workshop for building user interface components and pages in isolation. From 8.0.0 until 8.6.19, 9.1.21, 10.6.2, and 11.0.0-alpha.6, a malicious website can interact with the preview of a running Storybook development server. Insufficient iframe embedding and message-origin restrictions can allow attacker-controlled events to reach the running preview. A developer must visit the malicious website and interact with the injected interface. The attack can cause unauthorized changes to story files and, if a changed file is later executed by a local runtime, arbitrary code execution with the developer's privileges. This issue is fixed in 8.6.19, 9.1.21, 10.6.2, and 11.0.0-alpha.6.

Weaknesses (CWE)

  • CWE-94 — Improper Control of Generation of Code
  • CWE-346 — Origin Validation Error
  • CWE-1021 — Improper Restriction of Rendered UI Layers or Frames

References

Scores

VersionScoreVectorScored by
CVSS 4.0HIGH 8.6CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NGitHub_M
CVSS 4.0HIGH 8.6CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/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:XNVD · security-advisories@github.com (Secondary)

Advisories

European references

Affected products

ProductAffected versions
storybookjs · storybook
affected : >= 8.0.0, < 8.6.19
affected : >= 9.0.0, < 9.1.21
affected : >= 10.0.0, < 10.6.2
affected : >= 11.0.0-alpha.0, < 11.0.0-alpha.6

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD