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.ccchrome/browser/ai/ai_language_model.cccomponents/optimization_guide/core/model_execution/model_broker_client.ccservices/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
-
Missing Flag Validation in
AIManager: Inchrome/browser/ai/ai_manager.cc, theCanCreateLanguageModelandCreateLanguageModelInternalfunctions do not check thekAIPromptAPIToolUsefeature 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. -
Unconditional Capability Grant in
ModelClient: The capability check inAIManager::CreateLanguageModelInternalis bypassed becauseModelClient(incomponents/optimization_guide/core/model_execution/model_broker_client.cc) unconditionally addskToolUseto its capability set in its constructor (line 90). Consequently, verification against the model's capabilities always succeeds for the tool-use bit. -
Missing Capability Check for Tool Responses: In
chrome/browser/ai/ai_language_model.cc, theConvertToInputfunction processeskToolResponsecontent without verifying if the session has thekToolUsecapability. 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::Writeon renderer-supplied dictionary values withinAppendToolDeclarationsandGetToolResponseFromDict. - 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)
- From a compromised renderer (or via MojoJS), bind the
blink.mojom.AIManagerinterface. - Call
CreateLanguageModelwithoptions->toolspopulated. Observe if the browser process creates a session with tool-use capabilities even if thekAIPromptAPIToolUseflag is disabled. - Alternatively, create a standard language model session (without tools) and call
PromptwithkToolResponsecontent.AILanguageModel::ConvertToInputshould 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 forbase::FeatureList::IsEnabled(blink::features::kAIPromptAPIToolUse)inCanCreateLanguageModelandCreateLanguageModelInternalbefore allowing tool-related configurations. - In
components/optimization_guide/core/model_execution/model_broker_client.cc, remove the unconditional addition ofkToolUsein theModelClientconstructor 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 inConvertToInputfor thekToolResponsetag to ensure the session has thekToolUsecapability.
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.
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
- From a compromised renderer, bind the AI manager interface.
- Call the language model creation method with tools populated and see whether a tool-use session is created despite the flag being off.
- 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.