{"answers":{"affected":"6 open source packages ship an affected version, including storybook. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-27148 in the wild and no public exploit code.","fix":"Upgrade storybook to a fixed version for your release line: 10.2.10, 8.6.17 or 9.1.19.","what":"CVE-2026-27148 is a high-severity cross-site scripting vulnerability in storybookjs storybook, published on 25 Feb 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-27148 and fix it if it is affected.\n\nWhat it is: CVE-2026-27148 is a high-severity cross-site scripting vulnerability in storybookjs storybook, published on 25 Feb 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-27148 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- storybook (npm): affected from 10.0.0-beta.0; fixed in 10.2.10\n- storybook (npm): affected from 10.0.0-beta.0; fixed in 10.2.10\n- storybook (npm): affected from 8.1.0; fixed in 8.6.17\n- storybook (npm): affected from 8.1.0; fixed in 8.6.17\n- storybook (npm): affected from 8.7.0-alpha.0; fixed in 9.1.19\n- storybook (npm): affected from 8.7.0-alpha.0; fixed in 9.1.19\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-27148/ (Markdown: https://insights.sbomify.com/CVE-2026-27148/index.md)","id":"CVE-2026-27148","markdown":"https://insights.sbomify.com/CVE-2026-27148/index.md","name":"CVE-2026-27148","record":{"aliases":["CLSA-2026-1792221531","CLSA-2026-1792329950","CLSA-2026-1792372482","CLSA-2026-1792383181","CLSA-2026-1792438529","GHSA-mjf5-7g4m-gx5w","MINI-4h52-hvvq-f4pq","ROOT-APP-NPM-CVE-2026-27148"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Storybook dev server","requires_auth":"none","summary":"Attackers can hijack WebSocket connections to inject malicious code, leading to persistent XSS or remote code execution on the local Storybook dev server.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"storybook","vendor":"storybook"}],"cvss":{"score":8.9,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Storybook Dev Server Vulnerable to WebSocket Hijacking","id":"CVE-2026-27148","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":6,"n_references":9,"next":{"headline":"Discourse has SQL injection in PM tag filtering","id":"CVE-2026-27149"},"packages":[{"ecosystem":"npm","fixed":["10.2.10"],"introduced":["10.0.0-beta.0"],"last_affected":[],"package":"storybook","purl":null,"source":"GHSA-mjf5-7g4m-gx5w"},{"ecosystem":"npm","fixed":["10.2.10"],"introduced":["10.0.0-beta.0"],"last_affected":[],"package":"storybook","purl":"pkg:npm/storybook","source":"GHSA-mjf5-7g4m-gx5w"},{"ecosystem":"npm","fixed":["8.6.17"],"introduced":["8.1.0"],"last_affected":[],"package":"storybook","purl":null,"source":"GHSA-mjf5-7g4m-gx5w"},{"ecosystem":"npm","fixed":["8.6.17"],"introduced":["8.1.0"],"last_affected":[],"package":"storybook","purl":"pkg:npm/storybook","source":"GHSA-mjf5-7g4m-gx5w"},{"ecosystem":"npm","fixed":["9.1.19"],"introduced":["8.7.0-alpha.0"],"last_affected":[],"package":"storybook","purl":null,"source":"GHSA-mjf5-7g4m-gx5w"},{"ecosystem":"npm","fixed":["9.1.19"],"introduced":["8.7.0-alpha.0"],"last_affected":[],"package":"storybook","purl":"pkg:npm/storybook","source":"GHSA-mjf5-7g4m-gx5w"}],"prev":{"headline":"GetSimple CMS: Stored Cross-Site Scripting (XSS) via SVG File Upload (Authenticated)","id":"CVE-2026-27147"},"products":["storybook"],"published":"2026-02-25","related":[{"cvss_score":7.3,"headline":"Storybook manager bundle may expose environment variables during build","id":"CVE-2025-68429","kev_date_added":null,"published":"2025-12-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-15","vendors":["storybookjs"]},"summary":"Attackers can hijack WebSocket connections to inject malicious code, leading to persistent XSS or remote code execution on the local Storybook dev server.","url":"https://insights.sbomify.com/CVE-2026-27148/"}