ai-elements
Warn
Audited by Gen Agent Trust Hub on Oct 12, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [DYNAMIC_EXECUTION]: The
JSXPreviewcomponent (documented inreferences/jsx-preview.md) allows for the dynamic rendering of JSX strings at runtime. This functionality is designed to display AI-generated UI components but creates a surface for arbitrary code execution within the browser if the AI-generated input is not strictly sanitized. The component utilizes thereact-jsx-parserlibrary to convert these strings into live React elements. - [INDIRECT_PROMPT_INJECTION]: The skill contains several components, most notably
JSXPreviewandInlineCitation, that ingest and render data directly from an AI model's output. This creates an indirect prompt injection surface where a subverted model could produce malicious payloads for the UI. - Ingestion points: The
jsxprop of theJSXPreviewcomponent and the structured source data inInlineCitation. - Boundary markers: None identified; the components do not appear to use explicit delimiters or instructions to ignore commands within the ingested strings.
- Capability inventory: These components enable the rendering of complex UI and the execution of logic through the React component tree.
- Sanitization: Relies on the default security features of
react-jsx-parserand the markdown parser used inMessageResponse. - [DATA_EXFILTRATION]: The
SpeechInputcomponent (documented inreferences/speech-input.md) provides the capability to capture audio directly from the user's microphone. While intended for legitimate voice-to-text features, this represents access to sensitive audio data and local hardware.
Audit Metadata