CVE-2026-114125 is a critical origin-validation vulnerability in Storybook's dev server. The root cause is that the preview iframe's postMessage channel (PostMessageTransport) accepted messages from ANY origin without validation, and sent messages to a wildcard target origin. A malicious website could embed the Storybook preview iframe and send attacker-controlled events (e.g., SAVE_STORY_REQUEST) that would reach the dev server running on the developer's machine, causing unauthorized writes to story files. If a modified story file is later executed, this leads to arbitrary code execution with the developer's privileges.
The fix (in versions 8.6.19, 9.1.21, 10.6.2, 11.0.0-alpha.6) addresses multiple layers: (1) origin validation in PostMessageTransport.handleEvent via isAllowedSender/isAllowedToContactPreview/isAllowedToContactManager, (2) target-origin pinning in PostMessageTransport.send, (3) input validation in initializeSaveStory and updateArgsInCsfFile to prevent path traversal and code injection into story files, (4) role-based event filtering in the ServerChannelTransport WebSocket channel, and (5) restricting the highlight event API. The primary vulnerable function is PostMessageTransport.handleEvent, which is the entry point that lacked origin validation.