개요
이 취약점이 무엇인지
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.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| storybookstorybook · node.js 용 | 최초 버전 | ≤ | 취약 | < | 7.6.23 | 7.6.23이상 |
| 8.1.0 | ≤ | 취약 | < | 8.6.17 | 8.6.17이상 | |
| 9.0.0 | ≤ | 취약 | < | 9.1.19 | 9.1.19이상 | |
| 10.0.0 | ≤ | 취약 | < | 10.2.10 | 10.2.10이상 | |
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 4줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| storybookstorybookjs | 이 버전만 | 취약 | = | < 7.6.23 | 벤더 공지 확인 | |
| 이 버전만 | 취약 | = | >= 8.1.0, < 8.6.17 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | >= 9.0.0, < 9.1.19 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | >= 10.0.0, < 10.2.10 | 벤더 공지 확인 | ||
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치4
- github.com/storybookjs/storybook/commit/0affdf928bd6fafbadfb1dfe22ce6104805e10e8
- github.com/storybookjs/storybook/commit/54689a8add18ea75d628c540f4bc677592a1e685
- github.com/storybookjs/storybook/commit/b8cfa77c73940c140acdcd8a06ab1ea913c44761
- github.com/storybookjs/storybook/commit/d34085f39c647f5c23c3a3b2d197c18602fcf876