CVE-2026-47068

Cross-session PubSub topic injection via URL parameter in phoenix_storybook

Published May 20, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability is triggered when the component handles a URL query parameter named "topic". PhoenixStorybook.Story.ComponentIframeLive.handle_params/3 reads this value, broadcasts a tuple containing the process ID of the iframe without verifying that the supplied topic belongs to the current user session. The playground LiveView then uses the received identifier to target later messages, such as variation changes, theme switches, or custom payloads. By supplying a topic of another session in the iframe’s URL, an attacker can register with that session’s PubSub topic and receive the victim’s control messages, effectively manipulating the victim’s UI state without permission. This represents an authorization bypass through a user‑controlled key.

Affected Systems

Products affected are phenixdigital phoenix_storybook versions prior to 1.1.0, including all releases from 0.5.0 up to but not including 1.1.0. The vulnerability is also present in phx_live_storybook releases starting from 0.4.0 onward.

Risk and Exploitability

The CVSS score of 2.3 indicates low overall severity. Exploitation requires an attacker to construct a crafted URL containing the topic of a victim’s session; authentication or privileged access is not needed. The EPSS score of < 1% suggests a very low probability of widespread exploitation, and the lack of a KEV listing further reduces immediacy of concern. Nonetheless, the convenience of a simple URL trick means a determined attacker could use phishing or malicious links to target users, and once triggered, the attacker can alter UI state or themes in the victim’s session, which could interfere with testing or demonstrations.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade phenixdigital phoenix_storybook to version 1.1.0 or later to remove the insecure topic handling.
  • Modify the component that reads the "topic" query parameter to validate that the supplied topic belongs to the current user session before broadcasting the PID.
  • If an immediate upgrade is not feasible, limit the iframe URL to a controlled list of topic names and eliminate the ability to pass arbitrary values via the query string.

Generated by OpenCVE AI on November 22, 2026 at 23:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-mrhx-6pw9-q5fh PhoenixStorybook has cross-session PubSub topic injection via URL parameter
History
Type Values Removed Values Added
Description Authorization Bypass Through User-Controlled Key vulnerability in phenixdigital phoenix_storybook allows cross-session PubSub topic injection via a URL query parameter. 'Elixir.PhoenixStorybook.Story.ComponentIframeLive':handle_params/3 in lib/phoenix_storybook/live/story/component_iframe_live.ex reads a PubSub topic directly from params["topic"] and broadcasts {:component_iframe_pid, self()} on it with no check that the topic belongs to the requesting session. The shared PhoenixStorybook.PubSub is used to coordinate playground LiveViews with their iframes: a playground subscribes to a session-specific topic and uses the received iframe pid to direct subsequent control messages (variation state, theme switches, extra-assign payloads) via send/2. Because the iframe trusts the query parameter, an attacker who loads /storybook/iframe/<story>?topic=<victim_topic> causes their iframe process pid to be announced on the victim's topic. The victim's playground then addresses its private messages to the attacker's iframe process. This issue affects phoenix_storybook from 0.4.0 before 1.1.0. 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.
References
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Authorization Bypass Through User-Controlled Key vulnerability in phenixdigital phoenix_storybook allows cross-session PubSub topic injection via a URL query parameter. 'Elixir.PhoenixStorybook.Story.ComponentIframeLive':handle_params/3 in lib/phoenix_storybook/live/story/component_iframe_live.ex reads a PubSub topic directly from params["topic"] and broadcasts {:component_iframe_pid, self()} on it with no check that the topic belongs to the requesting session. The shared PhoenixStorybook.PubSub is used to coordinate playground LiveViews with their iframes: a playground subscribes to a session-specific topic and uses the received iframe pid to direct subsequent control messages (variation state, theme switches, extra-assign payloads) via send/2. Because the iframe trusts the query parameter, an attacker who loads /storybook/iframe/<story>?topic=<victim_topic> causes their iframe process pid to be announced on the victim's topic. The victim's playground then addresses its private messages to the attacker's iframe process. This issue affects phoenix_storybook from 0.4.0 before 1.1.0.
Title Cross-session PubSub topic injection via URL parameter in phoenix_storybook
First Time appeared Phenixdigital
Phenixdigital phoenix Storybook
Weaknesses CWE-639
CPEs cpe:2.3:a:phenixdigital:phoenix_storybook:*:*:*:*:*:*:*:*
Vendors & Products Phenixdigital
Phenixdigital phoenix Storybook
References
Metrics cvssV4_0

{'score': 2.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key

Sources

Status
PUBLISHED
Assigner
EEF
Published
Updated
Nov 20, 2026, 7:56 AM
Reserved
May 18, 2026, 5:28 PM
Status
Deferred
Published
May 20, 2026, 2:17 PM
Modified
Nov 20, 2026, 8:18 AM