Skip to content
Access control Advisory Advanced CVE-2026-17767

Insufficient validation of untrusted input in WebView (CVE-2026-17767)

Android WebView's request proxy trusted a renderer-supplied field indicating a Storage Access API grant when deciding whether to block third-party cookies. A compromised renderer could forge that field so cross-origin requests carried unpartitioned cookies, defeating an embedder's third-party cookie blocking policy.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: In Android WebView, AwProxyingURLLoaderFactory trusts the storage_access_api_status field provided by the renderer to determine if third-party cookies should be blocked. A compromised renderer can forge this status to bypass the embedder's setAcceptThirdPartyCookies(false) privacy policy. This represents a defense-in-depth failure due to WebView's lack of site isolation.

Affected files:

  • android_webview/browser/network_service/aw_proxying_url_loader_factory.cc

Estimated timestamp from git blame: 2025-01-17

Summary

A potential vulnerability exists in Android WebView where AwProxyingURLLoaderFactory uses an untrusted, renderer-provided field to make privacy decisions. By forging the request.storage_access_api_status field over the URLLoaderFactory Mojo interface, a compromised renderer can suppress the flag that blocks third-party cookies. This allows the attacker to make cross-origin subresource requests with unpartitioned cookies attached, bypassing an embedder's explicit CookieManager.getInstance().setAcceptThirdPartyCookies(webview, false) policy.

Because Android WebView currently disables Site Isolation (meaning all frames run in the same process), a compromised renderer already possesses significant capabilities to access cross-origin data. Therefore, this issue represents a defense-in-depth bypass of a privacy policy rather than a novel security boundary escape.

Technical Details

WebView leaves the underlying Network Service's CookieSettings permissive for third-party cookies by default (in AwBrowserContext::ConfigureNetworkContextParams). To enforce third-party cookie blocking, WebView intercepts requests in the browser process via AwProxyingURLLoaderFactory::CreateLoaderAndStart and appends the network::mojom::kURLLoadOptionBlockThirdPartyCookies flag to the URLLoader options bitmask.

However, in android_webview/browser/network_service/aw_proxying_url_loader_factory.cc, the proxy checks if the request has a Storage Access API grant by directly reading a field provided by the renderer:

C++
bool hasStorageAccess = request.storage_access_api_status ==
                        net::StorageAccessApiStatus::kAccessViaAPI;

if (!global_cookie_policy) {
  options |= network::mojom::kURLLoadOptionBlockAllCookies;
} else if (!third_party_cookie_policy && !request.url.SchemeIsFile() &&
           !hasStorageAccess) { // <--- Flaw here
  options |= network::mojom::kURLLoadOptionBlockThirdPartyCookies;
}

As documented in services/network/url_loader_util.cc, request.storage_access_api_status is not trusted for security or privacy decisions because a compromised client can spoof it.

If the renderer sets this field to kAccessViaAPI, hasStorageAccess becomes true, and the proxy fails to append the kURLLoadOptionBlockThirdPartyCookies flag. When the request reaches the Network Service, URLLoader::AllowFullCookies sees that the blocking option is missing and falls back to its permissive default, allowing unpartitioned third-party cookies to be sent.

Potential Attacker Steps

Note: These are suggested steps based on static analysis; our tooling cannot yet execute a live proof of concept.

  1. An Android application embeds a WebView and configures it to block third-party cookies (setAcceptThirdPartyCookies(false)).
  2. An attacker compromises the WebView renderer process (e.g., via a memory corruption vulnerability or UXSS).
  3. From the compromised renderer, the attacker directly constructs a network::ResourceRequest destined for https://victim.example with credentials_mode set to kInclude.
  4. The attacker manually sets request.storage_access_api_status to net::StorageAccessApiStatus::kAccessViaAPI.
  5. The attacker sends this crafted request over the URLLoaderFactory Mojo interface to the browser process.
  6. The browser process trusts the forged flag, omits the blocking option, and the Network Service attaches victim.example's unpartitioned cookies to the request, bypassing the app's privacy policy.

Suggested Fix

AwProxyingURLLoaderFactory must not trust request.storage_access_api_status provided by the renderer. If WebView needs to honor Storage Access API grants at this layer, it should validate the grant against a trusted browser-side authority (e.g., AwPermissionManager or the CookieManager). If WebView does not support the Storage Access API, this check should be removed entirely, and the renderer-provided value should be ignored.

Evaluated with Chrome root at commit: eca8648a4e1cdfdda68c495a6003059fed641955


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The browser-side proxy made a privacy decision using a renderer-provided field that is documented as untrusted, instead of checking a trusted browser-side authority.

Impact

A compromised renderer could bypass the app's third-party cookie privacy policy, though the report notes this is a defence-in-depth issue rather than a new boundary escape because WebView lacks site isolation.

What the attacker needed

App embeds WebView with third-party cookies off; attacker already controls the renderer process

The fix

The proxy should not trust the renderer-provided status; it should validate any grant against a trusted browser-side authority or drop the check entirely.

How it was found

  1. An app embeds a WebView and turns off third-party cookies.
  2. The attacker compromises the WebView renderer process.
  3. The attacker builds a cross-origin request with credentials included.
  4. The attacker sets the storage access status field to claim an API grant.
  5. The request is sent over the Mojo interface to the browser process.
  6. The browser omits the cookie-blocking option and cookies are attached.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A WebView is a browser view an app can embed. Apps can tell it not to send cookies (small files that identify you) to other websites, but the code trusted a value sent by the part of the browser that renders web pages, which an attacker could control. So an attacker who already broke into that part could make the app send cookies it meant to withhold.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.