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

Inappropriate implementation in Geolocation (CVE-2026-14002)

The browser process acts as a pass-through broker for Geolocation, giving a compromised renderer a direct Mojo pipe to the Device Service. A malicious renderer can close the broker connection to hide the location UI indicator and ignore visibility changes to continue polling location silently in the background.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 43 days

Flapjack, 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: The browser process acts as a pass-through broker when establishing a Geolocation connection, granting a compromised renderer a direct, unmediated Mojo pipe to the Device Service. Because location UI indicators are tied to the broker connection and visibility checks are handled client-side, a malicious renderer can drop the broker connection to hide the UI indicator and continue polling location silently in the background.

Affected files:

  • content/browser/geolocation/geolocation_service_impl.cc
  • services/device/geolocation/geolocation_impl.cc
  • services/device/public/mojom/geolocation_context.mojom

Estimated timestamp from git blame: 2016-10-16

Summary

Code review indicates a potential logic flaw in how Chromium manages Geolocation API connections. The browser process (content::GeolocationServiceImpl) currently acts as a simple pass-through broker. When a renderer requests location access, the browser verifies permissions, turns on the location tracking UI indicator, and then passes a direct device::mojom::Geolocation Mojo pipe between the renderer and the unsandboxed Device Service.

This architecture creates two distinct vulnerabilities if the renderer process is compromised:

  1. UI Indicator Bypass: The location tracking visual indicator is tied to the lifetime of the broker connection (blink::mojom::GeolocationService), not the data connection. An attacker can request location access, receive the direct data pipe, and immediately close the broker connection. The browser will call GeolocationServiceImpl::OnDisconnected(), decrementing the activity count and hiding the UI indicator, but the direct data pipe remains open.
  2. Privacy/Visibility Bypass: Chromium's privacy model dictates that backgrounded tabs should lose access to sensitive APIs. Currently, this is enforced entirely within the untrusted renderer process (blink::Geolocation::PageVisibilityChanged()). Because the browser process relinquished control of the data pipe, it cannot enforce visibility state.

Potential Exploitation Steps

Our tooling agent cannot currently run code to verify this, but code inspection suggests an attacker with a compromised renderer (and previously granted Geolocation permissions) could execute the following sequence:

  1. The compromised renderer binds the blink::mojom::GeolocationService (the broker).
  2. It calls CreateGeolocation(), passing a pending receiver for the data pipe.
  3. The browser process (GeolocationServiceImpl) checks permissions, calls IncrementActivityCount() to turn on the UI indicator, and passes the pending receiver to the Device Service via GeolocationContext::BindGeolocation().
  4. The Device Service creates a device::GeolocationImpl and establishes a direct device::mojom::Geolocation pipe with the compromised renderer.
  5. The compromised renderer immediately closes its end of the blink::mojom::GeolocationService broker pipe.
  6. The browser process detects the disconnection, calls DecrementActivityCount(), and turns off the location tracking UI indicator.
  7. The user backgrounds the tab.
  8. The compromised renderer ignores the standard PageVisibilityChanged() signal to halt tracking.
  9. The compromised renderer continuously calls QueryNextPosition() on the direct device::mojom::Geolocation pipe, achieving completely silent, persistent background location tracking.

Recommended Fix

The browser process must maintain authority over the data stream to enforce UI state and privacy boundaries.

Option 1 (Mediation): Do not pass the device::mojom::Geolocation pipe directly to the Device Service. Instead, the browser process (GeolocationServiceImpl) should own the remote to the Device Service and the receiver from the renderer. The browser process can then mediate QueryNextPosition calls, returning errors or dropping requests if the tab is backgrounded or the UI state is disconnected.

Option 2 (Signaling): If the direct pipe is required for performance, GeolocationServiceImpl must become a WebContentsObserver to monitor visibility changes. The device::mojom::GeolocationContext interface must be updated with Pause() and Resume() methods so the browser process can instruct the Device Service to halt updates for specific clients when they become hidden or disconnect their broker pipes.

Evaluated with Chrome root at commit: b7d0c4d810da1b31400f198c70d9720fc8f0e5a0


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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

Likely the browser process passes the location data pipe directly to the renderer without retaining control, so the UI indicator and visibility checks are tied to a separate broker connection that the renderer can close.

Impact

A compromised renderer with previously granted geolocation permission could track the user's location silently and persistently, bypassing the UI indicator and background-tab restrictions.

What the attacker needed

Compromised renderer process; geolocation permission previously granted

The fix

The browser process should mediate the data stream or signal the Device Service to pause updates when the tab is hidden or the broker disconnects.

How it was found

  1. The compromised renderer binds the broker interface.
  2. It calls CreateGeolocation() with a pending receiver for the data pipe.
  3. The browser checks permissions, turns on the UI indicator, and passes the receiver to the Device Service.
  4. The Device Service creates a direct data pipe with the renderer.
  5. The renderer closes the broker pipe, causing the browser to turn off the UI indicator.
  6. The renderer ignores visibility changes and keeps calling QueryNextPosition() on the direct pipe.

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 web page can ask the browser for your location. Normally the browser shows an icon while location is being used and stops access when the tab is in the background. This report says a hacked browser tab could keep getting your location without the icon and even when you switch away.

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.