Inappropriate implementation in DevTools (CVE-2026-14154)
When a DevTools session detaches, the emulation handler does not clear an active geolocation override, and because that override lives on a tab-scoped context it can survive later navigations in the same tab. An extension with debugger permission could therefore leave a spoofed position in place after the debugging infobar disappears, so sites with geolocation permission receive fake coordinates.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 33 days
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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: When a DevTools session detaches, EmulationHandler::Disable() fails to clear the active geolocation override. Because the geolocation context is tab-scoped and managed at the WebContents level, this spoofed position potentially persists across cross-origin navigations within the same tab after the debugger is closed. This could allow stealth geolocation spoofing by an extension using the debugger API without displaying the debugging infobar.
Affected files:
content/browser/devtools/protocol/emulation_handler.cc
Estimated timestamp from git blame: 2015-03-19
Root Cause Analysis
When a DevTools session detaches or is closed, the browser invokes EmulationHandler::Disable() (defined in content/browser/devtools/protocol/emulation_handler.cc, line 173) to clean up domain-specific overrides. While it successfully calls cleanup methods for touch, device, focus, and device posture (ClearDevicePostureOverride()), it does not call ClearGeolocationOverride() (defined on line 606).
Unlike other overrides tied directly to a RenderFrameHost (which are naturally replaced upon navigation), the geolocation override is stored on a tab-scoped context. Specifically, SetGeolocationOverride writes to device::mojom::GeolocationContext via GetWebContents()->GetGeolocationContext().
WebContentsImpl::geolocation_context_ (defined in content/browser/web_contents/web_contents_impl.h, line 2549) is bound once per tab and persists across navigations. When a new navigation occurs within the same tab, a new frame-specific GeolocationImpl binding is created on the device-service side, which inherits the existing geoposition_override_ state (defined in services/device/geolocation/geolocation_context.h, line 56). Because the cleanup method is omitted when the DevTools session is disabled, the spoofed position persists silently across navigations after the debugger detaches and the user-facing debugger infobar is removed.
Potential Impact
This leads to cross-origin geolocation spoofing that outlives the active DevTools UI indicator. A browser extension with debugger capabilities can attach to a target tab, apply a mock geolocation, detach itself (which removes the debugger infobar), and disappear from the UI. If the user subsequently navigates that tab to a site holding geolocation permissions (e.g., https://maps.google.com), the site will receive the attacker's mock coordinates instead of the actual physical position of the device. This override remains active for all origins visited in that tab until the tab itself is closed.
Suggested / Potential Steps to Trigger the Bug
Note: These steps are suggested/potential as we currently do not have the ability to run code or execute a live proof of concept.
-
Install an extension containing the
debuggerpermission. -
Programmatically attach to an active target tab:
JavaScript chrome.debugger.attach({tabId}, '1.3') -
Apply a mock geolocation override:
JavaScript chrome.debugger.sendCommand({tabId}, 'Emulation.setGeolocationOverride', {latitude: 37.0, longitude: -122.0, accuracy: 1}) -
Programmatically detach from the session:
JavaScript chrome.debugger.detach({tabId})Observe that the "<extension> is debugging this browser" infobar disappears from the browser UI.
-
Navigate that same tab to a target origin holding active geolocation permission.
-
The website's call to
navigator.geolocation.getCurrentPosition()will receive the spoofed coordinates (latitude 37.0, longitude -122.0) silently, with no indication that an emulation is active.
Suggested Fix
In content/browser/devtools/protocol/emulation_handler.cc, update EmulationHandler::Disable() to explicitly clear the geolocation override when the DevTools session is disabled or closed:
Response EmulationHandler::Disable() {
...
ClearDevicePostureOverride();
ClearGeolocationOverride(); // Reset active geolocation overrides
return Response::Success();
}
Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379
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.
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 cleanup routine for a detaching DevTools session omits the geolocation reset, and the override is stored on a tab-wide context that outlives navigations rather than on a per-frame object.
Impact
A site with geolocation permission could receive attacker-chosen coordinates instead of the device's real position, persisting for all origins in that tab until it is closed; the text notes no live proof of concept was run.
What the attacker needed
An installed extension with debugger permission; victim visits a site with geolocation permission
The fix
The disable routine should explicitly clear the geolocation override when the DevTools session is disabled or closed.
How it was found
- Install an extension that holds the debugger permission.
- Attach the debugger to an active tab.
- Send a command that sets a mock geolocation override.
- Detach the debugger and note the debugging infobar disappears.
- Navigate the same tab to a site that already holds geolocation permission.
- Observe the site receives the spoofed coordinates with no sign of emulation.
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.
Browsers let extensions use a debugging interface to inspect and control a tab, and while doing so they show a warning bar. This report says that when the extension stops debugging, one setting it changed (the fake location a page sees) is not reset. So a page visited later in that same tab could be given a false location without any warning bar being visible.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.