Command Palette

Search for a command to run...

Back to skills
skill № 75255

Android WebView JavaScript Risks

Detects insecure Android WebView configurations enabling XSS, JavaScript bridge abuse, and remote code execution.

FreeNo executable scripts
zakirkunby 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
Sign up freeI already have an account

About this skill

Android WebView JavaScript Risks

Overview

Android WebView is a powerful component that can be misconfigured to allow serious attacks:

  1. setJavaScriptEnabled(true) + addJavascriptInterface(): Creates a JavaScript bridge allowing web pages to call Java methods — RCE risk
  2. setAllowFileAccessFromFileURLs(true): JavaScript in file:// URLs can read other files
  3. Loading untrusted URLs: Loading attacker-controlled URLs with full bridge access
  4. setAllowUniversalAccessFromFileURLs(true): JavaScript in file:// can make cross-origin requests

Remediation

  • Only enable JavaScript for trusted content
  • Remove addJavascriptInterface() or add @JavascriptInterface annotation 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

Compare Android WebView JavaScript Risks with