Skip to content

Guides

Play Console WebView Security Alerts: Which Ones Block Your App and Who Fixes Them

Google flags WebView code that matches known vulnerability patterns. Here is what the three documented alerts mean, which can get an app removed, and who has to fix them if your app came from a converter.

11 min read

A Play Console WebView alert is a security notice Google attaches to an app when its WebView code matches a known vulnerability pattern. Google documents three that matter for apps built from websites: cross-app scripting, a sensitive JavaScript interface, and OAuth via WebView. According to Google's help pages, the first two can get an app removed from Google Play if they are not fixed by the deadline shown in Play Console, while the OAuth alert is recommended to fix but does not change your publication status. All three are fixed in the app's code, so who has to act depends on who owns that code.

Which Play Console WebView alert can get your app removed?

The three WebView alerts as described in Google's help pages, checked 23 November 2026
AlertWhat triggers itWhat Google says happensFix direction
Cross-app scriptingA JavaScript-enabled WebView that loads data from untrusted intents, including file:// URLs that can reach the cookie databaseApps with unfixed vulnerabilities may be removed after the deadline in Play Console; a submitted fix waits in pending publication until reviewedDo not export the activity, or sanitise inputs and block unsafe file loads
Sensitive JavaScript interfaceObjects exposed to web pages through addJavascriptInterface in a WebView that loads untrusted contentApps with unfixed vulnerabilities may be removed after the deadlines; unfixed issues can be enforced as potential policy violationsDo not add objects, keep sensitive APIs out, or load only your own scoped URLs with prominent disclosure
OAuth via WebView (shown as Usage of WebViews for Authentication)Sign-in (OAuth 2.0) requests made inside a WebViewFix is recommended, not mandatory; publication status is unaffectedMove the request to a Chrome Custom Tab

Alerts appear in the Alerts section of Play Console, and Google also emails the account owner. That means the person who holds the developer account sees them first, which is not always the person who built the app.

How does cross-app scripting get into a WebView app?

Google's cross-app scripting page describes a two-step attack. First, a malicious web page writes script tags into the WebView's cookie database. Second, a malicious app, or the page itself, sends the WebView a file:// URL that points at that database. The stored script then runs and can steal session information. It requires a JavaScript-enabled WebView that loads unsanitised input from untrusted intents, which are the messages other apps can send to yours.

Google offers two routes. Option 1: mark any activity that hosts an affected WebView as not exported (android:exported=false) when it does not need to receive intents from other apps. Option 2: if the activity must stay exported, pass only trusted values to evaluateJavascript and loadUrl, and stop the WebView loading the cookie database. You can do that by disabling file access, by checking the canonical path of any file:// URL because symbolic links can fool a plain path check, or by verifying file:// URLs in shouldOverrideUrlLoading and shouldInterceptRequest.

What does the sensitive JavaScript interface alert want changed?

Google's sensitive JavaScript interface page is about objects an app exposes to web pages with addJavascriptInterface. Google ties it to its Device and Network Abuse policy, which does not allow run-time JavaScript to open the door to other Play policy violations, and it warns that an exposed interface can lead to unplanned data collection and exfiltration. There are three ways to fix it:

  • Keep objects out: never call addJavascriptInterface for a WebView that loads untrusted content, or remove the objects with removeJavascriptInterface in shouldInterceptRequest before untrusted content loads.
  • Keep sensitive functionality out: move anything that needs sensitive permissions into code packaged inside the app, with prominent disclosure to users, or delete those functions.
  • Keep untrusted content out: if the WebView has sensitive functionality, load only strictly scoped URLs and content you own, and disclose the data or functionality used.

The third option is the one that reaches beyond the app's code. In our reading, it matters most if your WebView can navigate to other people's websites.

Does the OAuth via WebView alert stop my updates?

No. Google's OAuth via WebView page says fixing it is recommended but not mandatory, and that your app's publication status is unaffected. Google's advice is to replace the WebView used for OAuth 2.0 requests with a Chrome Custom Tab, because OAuth inside a WebView creates security risks and cuts users off from their single sign-on sessions. The Play Console notice lists where each request was found. A location ending in (in dynamically loaded code) means the request sits in code loaded by the app or by a library it uses.

If your actual problem is a Google login that fails inside the app, that is a different issue with its own fix; see our guide to Error 403 disallowed_useragent.

My app came from a website converter: who fixes the alert?

In our reading, the code that triggers these alerts sits in the app shell the builder generated, not in your website, so editing your site rarely clears the warning. The exception is the one noted above: which URLs the WebView is allowed to load. In practice you pass the alert to whoever produced the app. Send them:

  • The alert name, the affected package name and version code from the Play Console notice, and the deadline.
  • A question: is any activity that hosts a WebView exported to other apps?
  • A question: does the app expose JavaScript interface objects to pages other than your own site?
  • A question: do sign-in requests run in a Chrome Custom Tab or inside a WebView?
  • A request for a fixed Android App Bundle (AAB) and a delivery date.

If a builder cannot give you a date before the Play Console deadline, that tells you something about the builder as well as the app. The other review problems that apps built from websites run into are listed in our WebView rejection guide.

How do you upload the fixed build?

Google spells out the release steps on its OAuth page. The other two pages say to submit updated versions of the affected apps, so we treat these steps as the practical route for all three.

  1. 1

    Find the affected app and deadline

    Open the Alerts section in Play Console, or the email sent to the account owner, to see which apps are affected and when they must be fixed.

  2. 2

    Locate the flagged release

    In App bundle explorer, select the non-compliant version and note which tracks hold it: internal, closed, open testing or production.

  3. 3

    Create a new release in that track

    Use Create new release. If a draft release contains the flagged build, discard the draft.

  4. 4

    Add the fixed build

    Upload the corrected app bundle or APK.

  5. 5

    Move the old build to Not included

    Make sure the non-compliant bundle sits under Not included in the release.

  6. 6

    Save, review and repeat

    Save, choose Review release, and repeat for every track that holds the flagged build. The release then shows as in review until Google checks it.

For the JavaScript interface alert, Google says the resubmitted app is reviewed again, which can take several hours, and that you get an email if the new version fails review. If you believe Google flagged your app by mistake, the help pages point to a policy support team that says it replies within two business days. Our Google Play publishing guide covers the rest of Play Console.

Frequently asked questions

Will Google remove my app because of a WebView vulnerability alert?
It depends on the alert. For cross-app scripting and the sensitive JavaScript interface, Google says apps with unfixed vulnerabilities may be removed from Google Play after the deadlines shown in Play Console. For OAuth via WebView, Google says the fix is recommended but publication status is unaffected.
Where do I find which apps are affected and the deadline?
In the Alerts section of Play Console. Google's help pages also say a notification is emailed to the account owner, so check that inbox if nobody else on your team has seen it.
How long does review take after I upload a fix?
For the sensitive JavaScript interface alert, Google says re-review can take several hours. Until the review finishes, the update shows as pending publication or in review, and the warning stays if the fix was not applied correctly.
Does fixing my website clear a Play Console WebView alert?
Usually not on its own, because the alerts describe how the app's WebView code behaves. One exception is Google's third fix for the JavaScript interface alert, which is to load only URLs and content you own into a WebView that has sensitive functionality.
What if I think Google flagged my app by mistake?
The JavaScript interface help page links to Google's policy support team and says it replies within two business days. Include the alert name, the package name and the version code from your Play Console notice.