Insufficient validation of untrusted input in PDF (CVE-2026-11261)
The PdfHost interface is bound for every frame without origin or MIME checks, so a compromised subframe can inject a PDF helper. Contextualization features then use that helper's bytes while attributing them to the main frame's URL, spoofing the trusted origin to the AI backend.
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: A compromised subframe can bind the unguarded PdfHost interface to inject a malicious PDF helper. Contextualization features incorrectly use this helper, attributing attacker-controlled bytes to the main frame's URL.
Affected files:
chrome/browser/chrome_content_browser_client_receiver_bindings.cccomponents/pdf/browser/pdf_document_helper.ccchrome/browser/ui/lens/lens_search_contextualization_controller.ccchrome/browser/ui/contextual_search/tab_contextualization_controller.cc
Estimated timestamp from git blame: 2025-09-08
Root Cause
Initial logic and frame tree registrations are validated. The pdf::mojom::PdfHost interface is registered unconditionally for all RenderFrameHosts in chrome_content_browser_client_receiver_bindings.cc without origin or MIME type restrictions.
Potential Vulnerability Mechanism
- A compromised subframe establishes its context and binds
pdf::mojom::PdfHost, injecting aPDFDocumentHelper. - Standard contextualization processing is applied when the user interacts with Google Lens or Tab Contextualization on the main page.
- The pipeline jumps directly to
PDFDocumentHelper::MaybeGetForWebContents(). This method iterates over all frames and immediately returns the attacker's injected helper. - The contextualization controllers extract the attacker's payload via
GetPdfBytes(), completely bypassing legitimate main-frame text extraction. - The final payload is constructed in
LensOverlayQueryController::CreatePageContentPayload(), directly combining the attacker's bytes with the main frame's URL, effectively spoofing the trusted origin to the AI backend.
Note: These are potential steps as our tooling agent cannot execute live code to provide a working PoC.
Suggested Fix
Modify MaybeGetForWebContents() to only return a PDFDocumentHelper if it belongs to the primary main frame. Alternatively, require the contextualization controllers (like LensSearchContextualizationController and TabContextualizationController) to explicitly verify that the main frame's MIME type is application/pdf before entering the PDF extraction path, similar to the existing logic in PageContextFetcher.
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.
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 PdfHost interface is bound for all frames without checking origin or MIME type, and the helper lookup returns the first matching frame rather than the primary main frame.
Impact
An attacker could spoof the trusted main-frame origin to the AI backend with attacker-controlled content, though the report notes these are potential steps and no working proof of concept was executed.
What the attacker needed
Attacker controls a subframe; victim uses Lens or Tab Contextualization
The fix
The helper lookup should only return a PDF document helper belonging to the primary main frame, or the contextualization controllers should verify the main frame's MIME type is application/pdf before extracting PDF bytes.
How it was found
- A compromised subframe binds the PdfHost interface and injects a PDF document helper.
- The user interacts with Google Lens or Tab Contextualization on the main page.
- The pipeline calls MaybeGetForWebContents, which returns the attacker's injected helper.
- The controllers extract the attacker's bytes via GetPdfBytes, bypassing main-frame text extraction.
- The payload is built by combining the attacker's bytes with the main frame's URL.
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 smaller embedded pages called frames. The browser let any of these frames, even one an attacker controls, register a component that supplies PDF data. When the user used a feature that sends page content to an AI service, the browser took the attacker's data but labelled it with the real page's address, so the service trusted it.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.