ADVISORIES

Erlang Ecosystem Foundation

EEF-CVE-2026-47068

Cross-session PubSub topic injection via URL parameter in phoenix_storybook

Details

Summary

Authorization Bypass Through User-Controlled Key vulnerability in phenixdigital phoenix_storybook allows cross-session PubSub topic injection via a URL query parameter. An attacker who loads the component iframe with the topic of another session receives the control messages that the victim's playground sends to its iframe.

PhoenixStorybook.Story.ComponentIframeLive.handle_params/3 reads a PubSub topic from params["topic"] and broadcasts {:component_iframe_pid, self()} on it, with no check that the topic belongs to the requesting session. The playground uses the received pid as the target of its later messages (variation state, theme switches, extra-assign payloads). Releases published as phx_live_storybook have the same code in PhxLiveStorybook.Story.ComponentIframeLive.

This issue affects phoenix_storybook: from 0.5.0 before 1.1.0; phx_live_storybook: from 0.4.0 onward.

Affected packages

EcosystemPackageAffected versions
Hexphoenix_storybook
From 0.5.0 before 1.1.0 (fixed in 1.1.0)
Hexphx_live_storybook
From 0.4.0, no fix listed
v1.0.0, v0.9.3, v0.9.2, v0.9.1, v0.9.0, v0.8.3, v0.8.1, v0.7.2 and 21 more

References