Code 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.
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.
This issue affects phoenix_storybook: from 0.5.0 before 1.1.0; phx_live_storybook: from 0.3.0 onward.
{
"$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"
]
}{
"$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"
]
}
"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"
[
"'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'"
]
[
"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"
]
[
"'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"
]
"https://cna.erlef.org/osv/EEF-CVE-2026-8467.json"
{
"$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"
]
}
"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"
[
"'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'"
]
[
"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"
]
[
"'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"
]
"https://cna.erlef.org/osv/EEF-CVE-2026-8467.json"
"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"
[
"'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'"
]
[
"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"
]
[
"'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"
]
"https://cna.erlef.org/osv/EEF-CVE-2026-8467.json"