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

Insufficient policy enforcement Headless (CVE-2026-12027)

In chrome-headless-shell, creating a hidden target through the embedder-layer target handler skips the content-layer hidden target manager, so the backing renderer process is never marked as used. Under process-limit conditions this could let an attacker's site share that process and, after a separate renderer compromise, forge a DevTools binding notification to gain browser-level privileges.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 15 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: In chrome-headless-shell, creating a hidden target bypasses content-layer hidden target management and fails to mark the backing RenderProcessHost as used. Under process-limit conditions, this allows process reuse for untrusted web content, potentially exposing browser-level DevTools bindings to a compromised renderer process.

Affected files:

  • headless/lib/browser/protocol/target_handler.cc
  • headless/lib/browser/headless_web_contents_impl.cc

Estimated timestamp from git blame: 2025-04-02

Root Cause

In Chrome desktop, Target.createTarget requests with hidden=true fall through to the content layer (content::protocol::HiddenTargetManager::CreateHiddenTarget), which creates a hidden WebContents and explicitly marks its backing RenderProcessHost as used:

C++
// content/browser/devtools/protocol/hidden_target_manager.cc
web_contents->GetPrimaryMainFrame()->GetProcess()->SetIsUsed();

This prevents the process from being reused for other origins under process-limit conditions.

However, in chrome-headless-shell, the embedder-layer target handler (headless::protocol::TargetHandler::CreateTarget in headless/lib/browser/protocol/target_handler.cc) intercepts the hidden=true case and returns success directly without falling through or notifying the content layer:

C++
if (hidden.value_or(false)) {
  ...
  HeadlessWebContentsImpl* web_contents_impl = HeadlessWebContentsImpl::From(
      context->CreateWebContentsBuilder().SetInitialURL(gurl).Build());
  *out_target_id = content::DevToolsAgentHost::GetOrCreateFor(
                       web_contents_impl->web_contents())->GetId();
  hidden_web_contents_.insert(*out_target_id);
  return Response::Success();
}

Because of this bypass, SetIsUsed() is never called on the backing RenderProcessHost. The host remains marked as is_unused_ = true while keeping an allows-any-site process lock due to its initial unsited (about:blank) state.

Potential Attack Path

  1. A trusted client (e.g., WebDriver-BiDi automation) initiates a hidden target page via Target.createTarget({url: "about:blank", hidden: true}) followed by Target.exposeDevToolsProtocol with binding_name = "cdp" to expose browser-level DevTools bindings on the page.
  2. The backing RenderProcessHost for the hidden page is created but is never marked as used, maintaining IsUnused() == true.
  3. The automation script or a user navigates a normal tab to an untrusted site under the control of the attacker (e.g., https://attacker.example).
  4. Under process-limit constraints (such as running inside Linux containers or with --renderer-process-limit configured), IsSuitableHost is evaluated for the attacker's site. Because the hidden target's process has IsUnused() == true, the reuse checks in IsSuitableHost are bypassed, allowing the attacker's site to be co-scheduled in the same renderer process as the hidden frame/BiDi-mapper.
  5. Upon compromising this shared renderer process via a separate renderer bug, the attacker can directly construct and send a forged Runtime.bindingCalled notification for the cdp binding over the IPC/Mojo channel.
  6. The browser process's BrowserToPageConnector receives this forged notification and pumps the payload into the trusted BrowserDevToolsAgentHost session, granting the compromised renderer full browser-level privileges (such as local file access or remote code execution outside the sandbox).

(Note: These are suggested/potential steps modeled from static analysis; our tooling agent does not have the ability to run code and verify runtime execution.)

Suggested Fix

Modify headless::protocol::TargetHandler::CreateTarget in headless/lib/browser/protocol/target_handler.cc to return protocol::Response::FallThrough() when hidden is true, aligning its behavior with the Chrome desktop implementation and ensuring that content::protocol::HiddenTargetManager handles the creation and properly marks the process as used.

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.

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 headless embedder-layer target handler intercepts hidden target creation and returns success without falling through to the content layer, so SetIsUsed() is never called on the backing RenderProcessHost.

Impact

A compromised renderer could gain browser-level privileges such as local file access or code execution outside the sandbox, but only under process-limit conditions and after a separate renderer bug; the steps are modelled from static analysis and were not run.

What the attacker needed

Trusted automation creates a hidden target; process limit reached (e.g. container); separate renderer compromise needed

The fix

The headless target handler should fall through to the content layer when hidden is true, so the hidden target manager creates the page and marks its process as used.

How it was found

  1. A trusted automation client creates a hidden target at about:blank and exposes a DevTools protocol binding on it.
  2. The hidden page's renderer process is created but never marked as used.
  3. A normal tab is navigated to an attacker-controlled site.
  4. Under process limits, the attacker's site is co-scheduled into the same renderer process.
  5. After compromising that renderer through a separate bug, the attacker forges a binding-called notification for the exposed binding.
  6. The browser process forwards it into the trusted DevTools session, giving browser-level privileges.

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.

Chrome sometimes reuses an existing renderer process for a new site to save memory, but it avoids reusing a process that holds something sensitive. Here a hidden automation page was created in a way that left its process looking unused, so a later untrusted site could be placed in the same process. If that site then broke out of the renderer, it could talk to the browser through a debugging channel meant for trusted automation.

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.