Insufficient validation of untrusted input in OptimizationGuide (CVE-2026-9986)
The browser-side code that assembles page content for the Glic AI model did not check which frame was supplying popup data, so a compromised cross-origin iframe could inject a fake popup into a page-level field. This could let an attacker spoof UI to the AI and have it click sensitive main-page elements that cross-origin protections would normally block.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 14 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: A logic error in the assembly of AnnotatedPageContent (APC) allows a compromised cross-origin iframe to populate the page-level popup_window singleton. This can be exploited to spoof UI elements to the Glic AI model and bypass browser-side frame validation for coordinate-based actions.
Affected files:
components/optimization_guide/content/browser/page_content_proto_util.cccomponents/optimization_guide/proto/features/common_quality_data.protochrome/browser/actor/tools/page_tool.ccchrome/browser/actor/tools/page_target_util.cc
Estimated timestamp from git blame: Unknown (Google3 checkout)
Summary
A vulnerability in components/optimization_guide/content/browser/page_content_proto_util.cc allows a compromised renderer process hosting an Out-Of-Process Iframe (OOPIF) to inject malicious data into the popup_window field of the AnnotatedPageContent (APC) protocol buffer. Because this field is a page-level singleton used by the Glic AI Actor for UI interpretation and action validation, an attacker can spoof UI components and trick the AI into performing actions on the main page that would otherwise be blocked by cross-origin protections.
Root Cause Analysis
The browser-side APC stitcher iterates through all frames to assemble a unified page representation. When processing a subframe's AIPageContent response, it checks for popup data:
// components/optimization_guide/content/browser/page_content_proto_util.cc:1126
if (page_content->frame_data && page_content->frame_data->popup) {
RETURN_IF_ERROR(ConvertPopup(
*page_content->frame_data->popup, *render_frame_info));
}
The ConvertPopup function retrieves the singleton popup_window from the proto and populates it. Crucially, it fails to verify that the frame providing the popup data is actually authorized to do so for the page. A comment at line 1264 reveals an incorrect security assumption:
// Also we don't need browser-side security check as the data all come from the same renderer.
In a multi-process architecture with OOPIFs, this assumption is false. A compromised OOPIF renderer can supply malicious popup data that is then written into the shared popup_window field.
Exploitation (Potential Steps)
- Observation Spoofing: An attacker in a compromised OOPIF sends a fake popup tree containing malicious text or UI (e.g., a "Confirm Transaction" button) covering the viewport. The Glic AI model sees this as a top-level overlay, escaping the iframe's bounds.
- Merge Attack & Attribution Hijack: If the main frame also has a legitimate popup,
ConvertPopupis called twice. The second call (from the main frame) appends the main frame's nodes to the attacker's nodes in thechildren_nodeslist. More importantly, it overwrites theopener_document_idwith the main frame's trusted token (line 1266). This causes the attacker's injected nodes to be incorrectly attributed to the main frame. - Validation Bypass: When the AI model requests a click on a spoofed node, the browser performs
TimeOfUseValidation. Because the APC incorrectly attributes the node to the main frame, theValidateTargetFrameCandidatecheck inchrome/browser/actor/tools/page_tool.cc(line 89) will pass when comparing the APC-reported target (main frame) with the physical hit-test result (main frame). This allows the attacker to trigger clicks on sensitive main-frame UI elements.
Suggested Fix
Restrict popup_window population to the main frame's response in ConvertAIPageContentToProto, or implement strict source verification in ConvertPopup to ensure that only the frame currently owning the active PagePopup can provide this data. The browser-side stitcher should verify that the reporting frame's token matches the expected popup owner before modifying the singleton field.
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 APC stitcher assumed all frame data came from the same renderer and therefore skipped verifying that the frame supplying popup data was authorised to own the page-level popup_window field.
Impact
An attacker could spoof UI to the AI model and cause it to click sensitive main-frame elements, bypassing cross-origin frame validation; the report notes these are potential steps and that deductions may be wrong.
What the attacker needed
Compromised cross-origin iframe renderer; Glic AI Actor active on the page
The fix
Popup data should only be accepted from the main frame, or the stitcher should verify that the reporting frame owns the active popup before writing the singleton field.
How it was found
- A compromised cross-origin iframe sends a fake popup tree with spoofed UI text covering the viewport.
- If the main frame also has a popup, the second conversion appends the main frame's nodes to the attacker's and overwrites the opener document id with the main frame's token.
- The AI requests a click on a spoofed node, and the time-of-use frame validation passes because the node is attributed to the main frame.
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 can contain frames from other sites, and each frame may run in its own separate process for safety. The browser was collecting a description of the page for an AI assistant and trusted popup information from any frame, including one from another site. If an attacker controlled that frame, they could describe fake buttons to the AI and get it to click things on the real page.
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.