hwc-realtime-streaming
Pass
Audited by Gen Agent Trust Hub on Nov 1, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill provides a reference implementation for updating a combobox in real-time where data from an external WebSocket is injected directly into the DOM using innerHTML without sanitization.
- Ingestion points:
references/2024-03-12-hotwire-combobox-with-real-time-data.md(WebSocketmessageevent handler inexternal_websocket_controller.js). - Boundary markers: Absent; the
statevalue extracted from the WebSocket JSON payload is passed directly to the receiving controller without validation or delimitation. - Capability inventory: The
receiverStimulus controller possesses the capability to modify theinnerHTMLof listbox options and other DOM elements. - Sanitization: Absent; the
changeLabelmethod usesthis.element.innerHTML.replace()to insert thestatevariable into the HTML string, which creates an XSS vulnerability if the WebSocket source serves malicious content.
Audit Metadata