Skip to content
Path traversal Advisory Advanced CVE-2026-10922

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.cc
  • chrome/browser/devtools/devtools_window.cc
  • chrome/browser/devtools/devtools_ui.cc
  • chrome/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.

  1. Attacker Setup: The attacker sets up a malicious remote debugging target, reachable via ADB or TCP target discovery.
  2. Malicious Payload: The target responds to the /json/list discovery request with a payload where devtoolsFrontendUrl points 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).
  3. User Interaction: The victim user navigates to chrome://inspect and clicks the 'inspect' link for the malicious target.
  4. Bypassing Validation: Chrome proxies the URL to devtools://devtools/remote/serve_rev/@<hash>/some_vulnerable_file.html. The path passes validation in SanitizeFrontendPath and IsValidRemoteFrontendURL because it only contains allowed characters, despite not being a standard entrypoint.
  5. Exploitation: The historical frontend is loaded with full embedder bindings. The outdated JavaScript executes and calls the privileged InspectorFrontendHost.loadNetworkResource API, requesting an arbitrary local file (e.g., file:///etc/passwd).
  6. Data Exfiltration: The C++ backend DevToolsUIBindings::LoadNetworkResource processes the file:// 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.

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 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

  1. The attacker sets up a malicious remote debugging target reachable via ADB or TCP.
  2. The target responds to the discovery request with a devtoolsFrontendUrl pointing to a vulnerable historical revision on the Appspot CDN.
  3. The victim navigates to chrome://inspect and clicks the inspect link for the malicious target.
  4. Chrome proxies the URL and the path passes validation because it only contains allowed characters.
  5. The historical frontend loads and calls a privileged API to request an arbitrary local file.
  6. 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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.