Android WebView JavaScript Risks
Detects insecure Android WebView configurations enabling XSS, JavaScript bridge abuse, and remote code execution.
by zakirkun★ 40 GitHub stars
Install Android WebView JavaScript Risks in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Android WebView JavaScript Risks
Overview
Android WebView is a powerful component that can be misconfigured to allow serious attacks:
setJavaScriptEnabled(true)+addJavascriptInterface(): Creates a JavaScript bridge allowing web pages to call Java methods — RCE risksetAllowFileAccessFromFileURLs(true): JavaScript in file:// URLs can read other files- Loading untrusted URLs: Loading attacker-controlled URLs with full bridge access
setAllowUniversalAccessFromFileURLs(true): JavaScript in file:// can make cross-origin requests
Remediation
- Only enable JavaScript for trusted content
- Remove
addJavascriptInterface()or add@JavascriptInterfaceannotation carefully - Validate URLs before loading them in WebView
- Use
setWebContentsDebuggingEnabled(false)in production
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- patterns.yaml
FAQ
What does the Android WebView JavaScript Risks skill do?
Detects insecure Android WebView configurations enabling XSS, JavaScript bridge abuse, and remote code execution.
How do I install the Android WebView JavaScript Risks skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the Android WebView JavaScript Risks skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…