build-mcp-app
Pass
Audited by Gen Agent Trust Hub on Oct 15, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The widget templates provided in the skill documentation exhibit a vulnerability surface for cross-site scripting (XSS) within the sandboxed iframe context.
- Ingestion points: Untrusted JSON data enters the widget via the
app.ontoolresulthandler as shown inSKILL.mdandreferences/widget-templates.md. - Boundary markers: The host environment isolates widgets using an HTML
sandboxattribute and Content Security Policy (CSP), but the widget maintains powerful capabilities within the session. - Capability inventory: Scripts executing within the widget can utilize the
Appinstance to callapp.sendMessage(which injects messages into the chat with theuserrole),app.updateModelContext(silent context updates), andapp.callServerTool(direct server-side tool execution), as documented inreferences/apps-sdk-messages.md. - Sanitization: Templates in
SKILL.mdandreferences/widget-templates.mdrender data fields such asc.name,c.email,it.label, andit.subusinginnerHTML. If these fields originate from untrusted sources (e.g., external search results or databases), they could facilitate arbitrary code execution within the iframe, potentially allowing an attacker to manipulate the conversation or trigger server-side tools. - [DYNAMIC_EXECUTION]: The server-side implementation examples utilize a dynamic code inlining pattern to deliver the browser-side SDK.
- Evidence: In
SKILL.mdandreferences/iframe-sandbox.md, the server reads the@modelcontextprotocol/ext-apps/app-with-depsbundle from the local file system and uses regex-based string manipulation to convert module exports into global assignments before injecting the code into the served HTML. - Context: This technique is used to bypass CSP restrictions that prevent sandboxed iframes from loading scripts from external CDNs. While it constitutes runtime script generation, it is a documented requirement for the platform's widget architecture.
Audit Metadata