Inappropriate implementation in DevTools (CVE-2026-17787)
The DevTools AI Accessibility Agent resolved DOM paths without checking frame boundaries, so a path could reach into an in-process cross-origin iframe. An attacker could use prompt injection to make the assistant read and exfiltrate data from another origin.
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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: The DevTools AI Accessibility Agent resolves DOM paths without verifying frame boundaries, potentially allowing it to access in-process cross-origin iframes. This could enable an attacker to exfiltrate sensitive data from another origin using prompt injection.
Affected files:
third_party/devtools-frontend/src/front_end/models/ai_assistance/agents/AccessibilityAgent.tsthird_party/devtools-frontend/src/front_end/panels/ai_assistance/components/AccessibilityAgentMarkdownRenderer.tsthird_party/devtools-frontend/src/front_end/models/ai_assistance/data_formatters/LighthouseFormatter.tsthird_party/blink/renderer/core/inspector/inspector_dom_agent.ccchrome/browser/devtools/features.cc
Estimated timestamp from git blame: 2026-03-19
Summary
A potential vulnerability in the DevTools AI Accessibility Agent allows for cross-origin information disclosure. The agent resolves Lighthouse-style DOM paths provided by the LLM without verifying if the resolved node resides within the expected frame boundary. By utilizing path segments that traverse into child frames, an attacker could potentially use prompt injection to trick the assistant into reading and exfiltrating data from in-process cross-origin iframes.
Root Cause Analysis
The issue exists in AccessibilityAgent.#resolvePathToNode in third_party/devtools-frontend/src/front_end/models/ai_assistance/agents/AccessibilityAgent.ts. It uses domModel.pushNodeByPathToFrontend(path) to resolve a node path:
// front_end/models/ai_assistance/agents/AccessibilityAgent.ts
async #resolvePathToNode(path: string): Promise<SDK.DOMModel.DOMNode|null> {
// ...
const nodeId = await domModel.pushNodeByPathToFrontend(path);
if (!nodeId) { return null; }
return domModel.nodeForId(nodeId); // Lacks verification of node.frameId()
}
The underlying Chrome DevTools Protocol (CDP) implementation in third_party/blink/renderer/core/inspector/inspector_dom_agent.cc supports traversing into child iframes via the d (or d,#document) path segment. If an iframe is in-process (a common scenario for same-site cross-origin frames), DocumentForFrameOwner returns the child Document object, allowing path resolution to cross origin boundaries.
Tools such as getStyles and getElementAccessibilityDetails consume the resolved node and return sensitive data—such as accessible names (which can include rendered text content), computed styles, and ARIA attributes—to the AI model. If an attacker controls the path argument through prompt injection, they can exfiltrate this data.
This appears to be an oversight, as similar logic in the same module (AccessibilityAgentMarkdownRenderer.ts) correctly enforces the frame boundary by checking node.frameId() !== this.mainFrameId before linkifying a node.
Potential Attack Vector
An attacker could potentially trigger this vulnerability using prompt injection:
- Preparation: Host a page at
https://attacker.example.comthat embeds a same-site cross-origin iframe fromhttps://victim.example.com. - Injection: Include a DOM element on the attacker page that intentionally fails a Lighthouse accessibility audit. Place a prompt injection payload in a field that Lighthouse extracts (e.g., a
titleoraria-label). The payload would instruct the LLM to callgetElementAccessibilityDetailson a path targeting the victim iframe (e.g.,1,HTML,1,BODY,0,IFRAME,d,#document,1,HTML,1,BODY,0,H1). - Trigger: A developer runs a Lighthouse audit on the attacker's page and then uses the AI Accessibility Agent to investigate the report.
- Exfiltration: The LLM, following the injected instructions, fetches the cross-origin data and could be further instructed to exfiltrate it via the
executeJavaScripttool.
Impact
Successful exploitation could lead to a Same-Origin Policy (SOP) bypass, allowing the disclosure of sensitive rendered text, CSS properties, and ARIA attributes from cross-origin in-process iframes.
Suggested Fix
Modify AccessibilityAgent.#resolvePathToNode to verify that the resolved node belongs to the main frame of the page being inspected. The main frame ID can be retrieved from the ResourceTreeModel and compared against node.frameId().
const resourceTreeModel = domModel.target().model(SDK.ResourceTreeModel.ResourceTreeModel);
const mainFrameId = resourceTreeModel?.mainFrame?.id;
if (node.frameId() !== mainFrameId) {
return null;
}
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
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 path resolution function did not check that the resolved node belonged to the main frame, so a path segment could cross into a child iframe.
Impact
Successful exploitation could bypass the Same-Origin Policy and disclose sensitive rendered text, CSS properties, and ARIA attributes from cross-origin in-process iframes.
What the attacker needed
Attacker hosts a page with a cross-origin iframe; victim site is same-site and in-process; developer runs Lighthouse on attacker page; developer uses the AI Accessibility Agent
The fix
The resolvePathToNode function should be changed to compare the resolved node's frame ID with the main frame ID and return null when they differ.
How it was found
- Host a page that embeds a same-site cross-origin iframe from the victim site.
- Place a prompt injection payload in a field that Lighthouse extracts, such as a title or aria-label.
- A developer runs a Lighthouse audit on the attacker's page and then uses the AI Accessibility Agent to investigate the report.
- The LLM follows the injected instructions, fetches cross-origin data, and could be told to exfiltrate it via the executeJavaScript tool.
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 browser normally stops one website from reading another website's content, even when the second site is shown inside a frame on the first. Here, a developer tool that helps inspect pages could be tricked by text on a malicious page into reading content from a different site loaded in a frame. The tool then could pass that content to an AI assistant, which might send it somewhere else.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.