Insufficient validation of untrusted input in DevTools (CVE-2026-10922)
Chrome's DevTools URL handling only whitelisted characters in the path, not the entrypoint file, so a malicious debugging target could point to an old, vulnerable DevTools frontend on the official CDN. That old frontend could then use a privileged API to read arbitrary local files.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 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 security team.
Overview: Insufficient path validation in DevTools URL handling allows a malicious debugging target to force Chrome to load a historical, vulnerable DevTools frontend from the official CDN. An attacker can exploit resurrected JavaScript logic bugs in older frontends to read arbitrary local files via InspectorFrontendHost.loadNetworkResource.
Affected files:
chrome/browser/devtools/devtools_ui_bindings.ccchrome/browser/devtools/devtools_window.ccchrome/browser/devtools/devtools_ui.ccchrome/browser/devtools/devtools_ui_data_source.cc
Estimated timestamp from git blame: 2025-10-01
Summary
When handling remote debugging targets, Chrome relies on the target-provided devtoolsFrontendUrl to load the appropriate DevTools frontend. While the browser correctly restricts the host to chrome-devtools-frontend.appspot.com (via DevToolsUI::GetProxyURL), it fails to sufficiently validate the path component of the URL.
Functions such as SanitizeFrontendPath and DevToolsUIBindings::IsValidRemoteFrontendURL only enforce a character whitelist (allowing alphanumeric characters, /, -, _, ., and @) and do not enforce an entrypoint file allowlist (such as strictly requiring devtools.html or inspector.html).
This oversight allows an attacker to supply a devtoolsFrontendUrl pointing to a historical revision of the DevTools frontend hosted on the official Appspot CDN. By resurrecting an older frontend version, an attacker can bypass modern JavaScript security patches. For example, older frontends lacked robust validation for file:// URLs in their loadNetworkResource implementation. Because the C++ backend (DevToolsUIBindings::LoadNetworkResource) creates a FileURLLoaderFactory for file:// URLs without enforcing its own path or origin restrictions, it relies entirely on the frontend JavaScript for security. Loading a vulnerable historical frontend thus re-introduces the ability to read arbitrary local files from the user's system.
Potential Attack Steps
Note: These are suggested steps based on code analysis; a working proof of concept has not been executed.
- Attacker Setup: The attacker sets up a malicious remote debugging target, reachable via ADB or TCP target discovery.
- Malicious Payload: The target responds to the
/json/listdiscovery request with a payload wheredevtoolsFrontendUrlpoints to a known vulnerable historical revision on the Appspot CDN (e.g.,https://chrome-devtools-frontend.appspot.com/serve_rev/@<vulnerable_hash>/some_vulnerable_file.html). - User Interaction: The victim user navigates to
chrome://inspectand clicks the 'inspect' link for the malicious target. - Bypassing Validation: Chrome proxies the URL to
devtools://devtools/remote/serve_rev/@<hash>/some_vulnerable_file.html. The path passes validation inSanitizeFrontendPathandIsValidRemoteFrontendURLbecause it only contains allowed characters, despite not being a standard entrypoint. - Exploitation: The historical frontend is loaded with full embedder bindings. The outdated JavaScript executes and calls the privileged
InspectorFrontendHost.loadNetworkResourceAPI, requesting an arbitrary local file (e.g.,file:///etc/passwd). - Data Exfiltration: The C++ backend
DevToolsUIBindings::LoadNetworkResourceprocesses thefile://request unconditionally, reading the file and returning its contents to the attacker's JavaScript, which then exfiltrates the data.
Suggested Fix
Enforce a strict entrypoint allowlist for the filename portion of remote DevTools URLs.
DevToolsUIBindings::IsValidRemoteFrontendURL or SanitizeFrontendPath should verify that the requested file is an approved DevTools entrypoint (e.g., devtools.html, inspector.html, worker_app.html, js_app.html, or node_app.html), similar to the logic already present in SanitizeRemoteFrontendURL for handling the remoteFrontendUrl query parameter.
Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33
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.
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 path validation only enforced a character whitelist and did not restrict the filename to approved DevTools entrypoints, allowing historical frontends to be loaded.
Impact
An attacker could read arbitrary local files from the victim's system, though the report notes that a working proof of concept has not been executed.
What the attacker needed
Malicious remote debugging target; victim uses chrome://inspect; victim clicks inspect link
The fix
The fix should enforce a strict allowlist of approved DevTools entrypoint filenames in the URL validation.
How it was found
- The attacker sets up a malicious remote debugging target reachable via ADB or TCP.
- The target responds to the discovery request with a devtoolsFrontendUrl pointing to a vulnerable historical revision on the Appspot CDN.
- The victim navigates to chrome://inspect and clicks the inspect link for the malicious target.
- Chrome proxies the URL and the path passes validation because it only contains allowed characters.
- The historical frontend loads and calls a privileged API to request an arbitrary local file.
- The C++ backend reads the file and returns its contents to the attacker's JavaScript for exfiltration.
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.
When you debug a web page or app, Chrome can load a special developer tools interface from a remote server. This report says Chrome checked the characters in that address but not which file was requested, so an attacker could make Chrome load an old version of the developer tools that had a known bug. That old version could then read files on your computer.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.