{"id":"EEF-CVE-2026-8467","summary":"Unauthenticated remote code execution via HEEx template injection in phoenix_storybook playground","details":"## Summary\n\nCode Injection vulnerability in phenixdigital phoenix_storybook allows unauthenticated remote code execution via HEEx template injection in the component playground. A client can send attribute values over the playground WebSocket. A value that closes the attribute quote and adds a HEEx expression is evaluated as Elixir code on the server.\n\n`PhoenixStorybook.Story.PlaygroundPreviewLive.handle_event/3` accepts attribute names and values from the client and stores them through `PhoenixStorybook.ExtraAssignsHelpers.handle_set_variation_assign/3`. `PhoenixStorybook.Rendering.ComponentRenderer.attributes_markup/1` interpolates string values into a HEEx template without escaping. The template is compiled with `EEx.compile_string/2` and evaluated. Releases published as `phx_live_storybook` have the same code in the `PhxLiveStorybook` namespace, where the first client entry point is `PhxLiveStorybook.Entry.Playground.handle_event/3`.\n\nThis issue affects phoenix_storybook: from 0.5.0 before 1.1.0; phx_live_storybook: from 0.3.0 onward.","aliases":["CVE-2026-8467","GHSA-55hg-8qxv-qj4p"],"modified":"2026-11-26T17:23:13.721364182Z","published":"2026-05-20T13:35:29.018Z","database_specific":{"$schema":"https://cna.erlef.org/schemas/osv/record-0.1.0.json","capec_ids":["CAPEC-242"],"cpe_ids":["cpe:2.3:a:phenixdigital:phoenix_storybook:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-94"]},"references":[{"type":"ADVISORY","url":"https://github.com/phenixdigital/phoenix_storybook/security/advisories/GHSA-55hg-8qxv-qj4p"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-8467.html"},{"type":"WEB","url":"https://github.com/phenixdigital/phoenix_storybook/commit/e35379dfe2ef1a71b141899e36f431017c55265d"},{"type":"FIX","url":"https://github.com/phenixdigital/phoenix_storybook/commit/56ab8464d4375fa52db806148a06cce126ad481d"},{"type":"PACKAGE","url":"https://hex.pm/packages/phoenix_storybook"},{"type":"PACKAGE","url":"https://hex.pm/packages/phx_live_storybook"}],"affected":[{"package":{"name":"phoenix_storybook","ecosystem":"Hex","purl":"pkg:hex/phoenix_storybook"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.5.0"},{"fixed":"1.1.0"}]}],"versions":["0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.5.5","0.5.6","0.5.7","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.7.0","0.7.1","0.7.2","0.8.0","0.8.1","0.8.2","0.8.3","0.9.0","0.9.1","0.9.2","0.9.3","1.0.0"],"ecosystem_specific":{"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["'Elixir.PhoenixStorybook.Rendering.ComponentRenderer'","'Elixir.PhoenixStorybook.Story.PlaygroundPreviewLive'","'Elixir.PhoenixStorybook.ExtraAssignsHelpers'","'Elixir.PhxLiveStorybook.Rendering.ComponentRenderer'","'Elixir.PhxLiveStorybook.Story.PlaygroundPreviewLive'","'Elixir.PhxLiveStorybook.ExtraAssignsHelpers'","'Elixir.PhxLiveStorybook.Entry.Playground'","'Elixir.PhxLiveStorybook.Entry.PlaygroundPreviewLive'"],"program_files":["lib/phoenix_storybook/rendering/component_renderer.ex","lib/phoenix_storybook/live/story/playground_preview_live.ex","lib/phoenix_storybook/helpers/extra_assigns_helpers.ex","lib/phx_live_storybook/rendering/component_renderer.ex","lib/phx_live_storybook/live/story/playground_preview_live.ex","lib/phx_live_storybook/helpers/extra_assigns_helpers.ex","lib/phx_live_storybook/live/entry/playground.ex","lib/phx_live_storybook/live/entry/playground_preview_live.ex"],"program_routines":["'Elixir.PhoenixStorybook.Rendering.ComponentRenderer':attributes_markup/1","'Elixir.PhoenixStorybook.Story.PlaygroundPreviewLive':handle_event/3","'Elixir.PhoenixStorybook.ExtraAssignsHelpers':handle_set_variation_assign/3","'Elixir.PhxLiveStorybook.Rendering.ComponentRenderer':attributes_markup/1","'Elixir.PhxLiveStorybook.Rendering.ComponentRenderer':attributes_markup/2","'Elixir.PhxLiveStorybook.Story.PlaygroundPreviewLive':handle_event/3","'Elixir.PhxLiveStorybook.ExtraAssignsHelpers':handle_set_variation_assign/3","'Elixir.PhxLiveStorybook.ExtraAssignsHelpers':handle_set_variation_assign/4","'Elixir.PhxLiveStorybook.Entry.Playground':handle_event/3","'Elixir.PhxLiveStorybook.Entry.PlaygroundPreviewLive':handle_info/2"]},"database_specific":{"program_routines":["'Elixir.PhoenixStorybook.Rendering.ComponentRenderer':attributes_markup/1","'Elixir.PhoenixStorybook.Story.PlaygroundPreviewLive':handle_event/3","'Elixir.PhoenixStorybook.ExtraAssignsHelpers':handle_set_variation_assign/3","'Elixir.PhxLiveStorybook.Rendering.ComponentRenderer':attributes_markup/1","'Elixir.PhxLiveStorybook.Rendering.ComponentRenderer':attributes_markup/2","'Elixir.PhxLiveStorybook.Story.PlaygroundPreviewLive':handle_event/3","'Elixir.PhxLiveStorybook.ExtraAssignsHelpers':handle_set_variation_assign/3","'Elixir.PhxLiveStorybook.ExtraAssignsHelpers':handle_set_variation_assign/4","'Elixir.PhxLiveStorybook.Entry.Playground':handle_event/3","'Elixir.PhxLiveStorybook.Entry.PlaygroundPreviewLive':handle_info/2"],"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["'Elixir.PhoenixStorybook.Rendering.ComponentRenderer'","'Elixir.PhoenixStorybook.Story.PlaygroundPreviewLive'","'Elixir.PhoenixStorybook.ExtraAssignsHelpers'","'Elixir.PhxLiveStorybook.Rendering.ComponentRenderer'","'Elixir.PhxLiveStorybook.Story.PlaygroundPreviewLive'","'Elixir.PhxLiveStorybook.ExtraAssignsHelpers'","'Elixir.PhxLiveStorybook.Entry.Playground'","'Elixir.PhxLiveStorybook.Entry.PlaygroundPreviewLive'"],"program_files":["lib/phoenix_storybook/rendering/component_renderer.ex","lib/phoenix_storybook/live/story/playground_preview_live.ex","lib/phoenix_storybook/helpers/extra_assigns_helpers.ex","lib/phx_live_storybook/rendering/component_renderer.ex","lib/phx_live_storybook/live/story/playground_preview_live.ex","lib/phx_live_storybook/helpers/extra_assigns_helpers.ex","lib/phx_live_storybook/live/entry/playground.ex","lib/phx_live_storybook/live/entry/playground_preview_live.ex"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-8467.json"}},{"package":{"name":"phx_live_storybook","ecosystem":"Hex","purl":"pkg:hex/phx_live_storybook"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.3.0"}]}],"versions":["0.3.0","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.4.5"],"ecosystem_specific":{"modules":["'Elixir.PhoenixStorybook.Rendering.ComponentRenderer'","'Elixir.PhoenixStorybook.Story.PlaygroundPreviewLive'","'Elixir.PhoenixStorybook.ExtraAssignsHelpers'","'Elixir.PhxLiveStorybook.Rendering.ComponentRenderer'","'Elixir.PhxLiveStorybook.Story.PlaygroundPreviewLive'","'Elixir.PhxLiveStorybook.ExtraAssignsHelpers'","'Elixir.PhxLiveStorybook.Entry.Playground'","'Elixir.PhxLiveStorybook.Entry.PlaygroundPreviewLive'"],"program_files":["lib/phoenix_storybook/rendering/component_renderer.ex","lib/phoenix_storybook/live/story/playground_preview_live.ex","lib/phoenix_storybook/helpers/extra_assigns_helpers.ex","lib/phx_live_storybook/rendering/component_renderer.ex","lib/phx_live_storybook/live/story/playground_preview_live.ex","lib/phx_live_storybook/helpers/extra_assigns_helpers.ex","lib/phx_live_storybook/live/entry/playground.ex","lib/phx_live_storybook/live/entry/playground_preview_live.ex"],"program_routines":["'Elixir.PhoenixStorybook.Rendering.ComponentRenderer':attributes_markup/1","'Elixir.PhoenixStorybook.Story.PlaygroundPreviewLive':handle_event/3","'Elixir.PhoenixStorybook.ExtraAssignsHelpers':handle_set_variation_assign/3","'Elixir.PhxLiveStorybook.Rendering.ComponentRenderer':attributes_markup/1","'Elixir.PhxLiveStorybook.Rendering.ComponentRenderer':attributes_markup/2","'Elixir.PhxLiveStorybook.Story.PlaygroundPreviewLive':handle_event/3","'Elixir.PhxLiveStorybook.ExtraAssignsHelpers':handle_set_variation_assign/3","'Elixir.PhxLiveStorybook.ExtraAssignsHelpers':handle_set_variation_assign/4","'Elixir.PhxLiveStorybook.Entry.Playground':handle_event/3","'Elixir.PhxLiveStorybook.Entry.PlaygroundPreviewLive':handle_info/2"],"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"},"database_specific":{"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["'Elixir.PhoenixStorybook.Rendering.ComponentRenderer'","'Elixir.PhoenixStorybook.Story.PlaygroundPreviewLive'","'Elixir.PhoenixStorybook.ExtraAssignsHelpers'","'Elixir.PhxLiveStorybook.Rendering.ComponentRenderer'","'Elixir.PhxLiveStorybook.Story.PlaygroundPreviewLive'","'Elixir.PhxLiveStorybook.ExtraAssignsHelpers'","'Elixir.PhxLiveStorybook.Entry.Playground'","'Elixir.PhxLiveStorybook.Entry.PlaygroundPreviewLive'"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-8467.json","program_files":["lib/phoenix_storybook/rendering/component_renderer.ex","lib/phoenix_storybook/live/story/playground_preview_live.ex","lib/phoenix_storybook/helpers/extra_assigns_helpers.ex","lib/phx_live_storybook/rendering/component_renderer.ex","lib/phx_live_storybook/live/story/playground_preview_live.ex","lib/phx_live_storybook/helpers/extra_assigns_helpers.ex","lib/phx_live_storybook/live/entry/playground.ex","lib/phx_live_storybook/live/entry/playground_preview_live.ex"],"program_routines":["'Elixir.PhoenixStorybook.Rendering.ComponentRenderer':attributes_markup/1","'Elixir.PhoenixStorybook.Story.PlaygroundPreviewLive':handle_event/3","'Elixir.PhoenixStorybook.ExtraAssignsHelpers':handle_set_variation_assign/3","'Elixir.PhxLiveStorybook.Rendering.ComponentRenderer':attributes_markup/1","'Elixir.PhxLiveStorybook.Rendering.ComponentRenderer':attributes_markup/2","'Elixir.PhxLiveStorybook.Story.PlaygroundPreviewLive':handle_event/3","'Elixir.PhxLiveStorybook.ExtraAssignsHelpers':handle_set_variation_assign/3","'Elixir.PhxLiveStorybook.ExtraAssignsHelpers':handle_set_variation_assign/4","'Elixir.PhxLiveStorybook.Entry.Playground':handle_event/3","'Elixir.PhxLiveStorybook.Entry.PlaygroundPreviewLive':handle_info/2"]}},{"ranges":[{"type":"GIT","repo":"https://github.com/phenixdigital/phoenix_storybook","events":[{"introduced":"e35379dfe2ef1a71b141899e36f431017c55265d"},{"fixed":"56ab8464d4375fa52db806148a06cce126ad481d"}]}],"database_specific":{"program_routines":["'Elixir.PhoenixStorybook.Rendering.ComponentRenderer':attributes_markup/1","'Elixir.PhoenixStorybook.Story.PlaygroundPreviewLive':handle_event/3","'Elixir.PhoenixStorybook.ExtraAssignsHelpers':handle_set_variation_assign/3","'Elixir.PhxLiveStorybook.Rendering.ComponentRenderer':attributes_markup/1","'Elixir.PhxLiveStorybook.Rendering.ComponentRenderer':attributes_markup/2","'Elixir.PhxLiveStorybook.Story.PlaygroundPreviewLive':handle_event/3","'Elixir.PhxLiveStorybook.ExtraAssignsHelpers':handle_set_variation_assign/3","'Elixir.PhxLiveStorybook.ExtraAssignsHelpers':handle_set_variation_assign/4","'Elixir.PhxLiveStorybook.Entry.Playground':handle_event/3","'Elixir.PhxLiveStorybook.Entry.PlaygroundPreviewLive':handle_info/2"],"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["'Elixir.PhoenixStorybook.Rendering.ComponentRenderer'","'Elixir.PhoenixStorybook.Story.PlaygroundPreviewLive'","'Elixir.PhoenixStorybook.ExtraAssignsHelpers'","'Elixir.PhxLiveStorybook.Rendering.ComponentRenderer'","'Elixir.PhxLiveStorybook.Story.PlaygroundPreviewLive'","'Elixir.PhxLiveStorybook.ExtraAssignsHelpers'","'Elixir.PhxLiveStorybook.Entry.Playground'","'Elixir.PhxLiveStorybook.Entry.PlaygroundPreviewLive'"],"program_files":["lib/phoenix_storybook/rendering/component_renderer.ex","lib/phoenix_storybook/live/story/playground_preview_live.ex","lib/phoenix_storybook/helpers/extra_assigns_helpers.ex","lib/phx_live_storybook/rendering/component_renderer.ex","lib/phx_live_storybook/live/story/playground_preview_live.ex","lib/phx_live_storybook/helpers/extra_assigns_helpers.ex","lib/phx_live_storybook/live/entry/playground.ex","lib/phx_live_storybook/live/entry/playground_preview_live.ex"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-8467.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","source":"CNA"}],"credits":[{"name":"Nick Mykhailyshyn","type":"FINDER"},{"name":"Cenk Kücük","type":"ANALYST"},{"name":"Jonatan Männchen / EEF","type":"ANALYST"},{"name":"Christian Blavier","type":"REMEDIATION_DEVELOPER"}]}