Skip to content
vetkitChecksChangelogDocumentation

vetkit.java.android.webview-file-access

A WebView explicitly enables access to the local file system.

Last updated:

Suite: Security

java

A WebView explicitly enables access to the local file system.

Category: SECURITY · Engine rule severity: INFO

How to fix it

Call setAllowFileAccess(false) and load bundled content through WebViewAssetLoader instead.

Rule pattern example

The engine’s matching pattern, not a confirmed exploit. Metavariables and ellipses describe matching syntax.

$S.setAllowFileAccess(true)

References

Source: packages/engine/rules/sast/java.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.