bun-webview
Pass
Audited by Gen Agent Trust Hub on Oct 4, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
backendconfiguration in theBun.WebViewconstructor allows users to specify a custompathto a browser executable and provide arbitraryargvcommand-line arguments. This functionality allows for the execution of arbitrary binaries on the host system if the path or arguments are derived from untrusted inputs. - [DYNAMIC_EXECUTION]: The
evaluate()method executes JavaScript expressions provided as strings within the webview context. If an agent interpolates user data into these expressions without rigorous sanitization, it may lead to cross-site scripting (XSS) or arbitrary code execution within the browser environment. - [DYNAMIC_EXECUTION]: The
cdp()method permits sending raw Chrome DevTools Protocol commands. This provides low-level control over the browser backend, which could be leveraged to bypass security policies, access sensitive browser state, or exfiltrate data from the session. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to interact with external websites via
navigate()andevaluate(). This creates an attack surface for indirect prompt injection, where malicious instructions hidden in a website's HTML, metadata, or scripts could attempt to manipulate the agent's behavior when it processes the page content. - Ingestion points: URL navigation via
view.navigate()and DOM content extraction viaview.evaluate(). - Boundary markers: None implemented; content is processed directly within the webview.
- Capability inventory: File system writes (screenshots), network access (navigation), and arbitrary script execution (
evaluate). - Sanitization: The skill documentation does not provide guidelines for sanitizing or escaping content retrieved from external URLs.
Audit Metadata