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

Insufficient validation of untrusted input in Browser (CVE-2026-14095)

The browser-side handlers for the Prompt API did not enforce the experimental tool-use feature flag, and a model client unconditionally advertised tool-use capability, so a compromised renderer could reach experimental tool-use code in the browser and on-device model processes. This expanded the attack surface to code intended to be disabled in production builds.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 48 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 without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: The kAIPromptAPIToolUse feature flag is only enforced in the renderer, potentially allowing a compromised renderer to bypass this gate and access experimental AI tool-use code in the browser and utility processes. This expands the attack surface to include experimental code that was intended to be disabled in production builds.

Affected files:

  • chrome/browser/ai/ai_manager.cc
  • chrome/browser/ai/ai_language_model.cc
  • components/optimization_guide/core/model_execution/model_broker_client.cc
  • services/on_device_model/ml/on_device_model_executor.cc

Estimated timestamp from git blame: 2026-03-10

The Prompt API's tool-use feature (kAIPromptAPIToolUse) is an experimental capability intended to be gated by a feature flag. However, the browser-side implementation appears to lack sufficient enforcement, potentially allowing a compromised renderer to bypass the flag by sending Mojo IPCs directly to the browser process. This violates the security principle that browser-process IPC handlers must not rely on the renderer to enforce feature gates, especially for experimental features that may not have undergone full security review.

Potential Root Causes

  1. Missing Flag Validation in AIManager: In chrome/browser/ai/ai_manager.cc, the CanCreateLanguageModel and CreateLanguageModelInternal functions do not check the kAIPromptAPIToolUse feature flag when processing tool-use options. The implementation explicitly defers this check to the renderer (see comments at lines 707 and 852), allowing a renderer to request tool-use support even when the flag is disabled.

  2. Unconditional Capability Grant in ModelClient: The capability check in AIManager::CreateLanguageModelInternal is bypassed because ModelClient (in components/optimization_guide/core/model_execution/model_broker_client.cc) unconditionally adds kToolUse to its capability set in its constructor (line 90). Consequently, verification against the model's capabilities always succeeds for the tool-use bit.

  3. Missing Capability Check for Tool Responses: In chrome/browser/ai/ai_language_model.cc, the ConvertToInput function processes kToolResponse content without verifying if the session has the kToolUse capability. While other experimental input types like images and audio are validated against the session's capability set, tool responses are accepted and processed unconditionally.

Potential Impact

A compromised renderer could exploit these omissions to reach experimental code paths in both the browser process and the sandboxed On-Device Model Service (ODMS) utility process. This includes:

  • Browser Process: Reaching base::JSONWriter::Write on renderer-supplied dictionary values within AppendToolDeclarations and GetToolResponseFromDict.
  • ODMS Utility Process: Forwarding attacker-controlled tool-related data to the underlying ChromeML library via services/on_device_model/ml/on_device_model_executor.cc, reaching experimental tool-declaration parsers and state machines.

Suggested Reproduction Steps (Potential)

  1. From a compromised renderer (or via MojoJS), bind the blink.mojom.AIManager interface.
  2. Call CreateLanguageModel with options->tools populated. Observe if the browser process creates a session with tool-use capabilities even if the kAIPromptAPIToolUse flag is disabled.
  3. Alternatively, create a standard language model session (without tools) and call Prompt with kToolResponse content. AILanguageModel::ConvertToInput should process the tool response and forward it to the ODMS process without verifying tool-use support.

Suggested Fix

  • In chrome/browser/ai/ai_manager.cc, add explicit checks for base::FeatureList::IsEnabled(blink::features::kAIPromptAPIToolUse) in CanCreateLanguageModel and CreateLanguageModelInternal before allowing tool-related configurations.
  • In components/optimization_guide/core/model_execution/model_broker_client.cc, remove the unconditional addition of kToolUse in the ModelClient constructor and instead derive it from the model's actual capabilities or the feature flag.
  • In chrome/browser/ai/ai_language_model.cc, add a capability check in ConvertToInput for the kToolResponse tag to ensure the session has the kToolUse capability.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


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 IPC handlers deferred the feature-flag check to the renderer and a model client granted tool-use capability unconditionally, so the gate was never enforced where it mattered.

Impact

A compromised renderer could reach experimental tool-use code paths in the browser process and the sandboxed on-device model utility process, though the text only describes potential reach, not a demonstrated exploit.

What the attacker needed

Compromised renderer or MojoJS access

The fix

The browser-side handlers should check the feature flag, the model client should derive tool-use capability from the model or flag rather than adding it unconditionally, and tool responses should be validated against the session's capabilities.

How it was found

  1. From a compromised renderer, bind the AI manager interface.
  2. Call the language model creation method with tools populated and see whether a tool-use session is created despite the flag being off.
  3. Alternatively, create a normal session and send a tool response, which is processed without a capability check.

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 runs in a locked-down part of the browser called the renderer. It talks to the more privileged browser process through messages. Here the browser process trusted the renderer to check whether an experimental feature was switched on, so a hacked renderer could ask for that feature anyway and reach code that was meant to be off.

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.