Insufficient validation of untrusted input in DevTools (CVE-2026-10980)
The DevTools frontend matched command responses to callbacks using only a shared message ID, and the browser allowed renderer-originated notifications to carry an ID field. A compromised renderer could predict the next ID and inject spoofed data into the DevTools UI for a different inspected session.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 18 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A logic flaw in the DevTools frontend's message handling combined with insufficient validation in the browser allows a compromised renderer to spoof Chrome DevTools Protocol (CDP) responses for other sessions. By predicting shared message IDs, an attacker can inject malicious data into the DevTools UI for victim origins.
Affected files:
third_party/devtools-frontend/src/front_end/core/protocol_client/DevToolsCDPConnection.tscontent/browser/devtools/devtools_session.ccthird_party/devtools-frontend/src/front_end/core/protocol_client/InspectorBackend.tsthird_party/devtools-frontend/src/front_end/core/sdk/Connections.tschrome/browser/devtools/devtools_ui_bindings.cc
Estimated timestamp from git blame: 2025-10-31
Summary
A potential vulnerability exists in the Chrome DevTools protocol handling that allows a compromised renderer process (Session B) to spoof protocol responses for a different inspected session (Session A) managed by the same DevTools window. This is caused by a lack of session ID verification in the frontend's command-response matching logic and a failure in the browser process to filter restricted fields in renderer-originated notifications.
Technical Details
1. Frontend: Lack of Session Validation in DevToolsCDPConnection
In the DevTools frontend, the DevToolsCDPConnection class manages CDP communication. It uses a single internal map #callbacks and a shared counter #lastMessageId for all targets multiplexed over the connection (e.g., the main page and cross-origin iframes).
When a command is sent, the callback metadata includes the sessionId, but when a message is received in onMessage, the frontend only uses the id field to retrieve and resolve the callback:
// third_party/devtools-frontend/src/front_end/core/protocol_client/DevToolsCDPConnection.ts
private onMessage(message: string|Object): void {
// ... parsing ...
if ('id' in messageObject && messageObject.id !== undefined) {
const callback = this.#callbacks.get(messageObject.id);
this.#callbacks.delete(messageObject.id);
if (!callback) { return; }
// VULNERABILITY: sessionId in messageObject is not compared against callback.sessionId
callback.resolve(messageObject);
}
}
2. Browser: Insufficient Notification Filtering
A compromised renderer can send protocol messages to the frontend via the DispatchProtocolNotification method of the blink.mojom.DevToolsSessionHost interface. The browser's implementation in DevToolsSession::ValidateSessionId ensures the sessionId in the message matches the renderer's session, but it does not prohibit the presence of an id field in the message body.
Typically, only responses (which are generated by the browser or a trusted backend) should contain an id. By allowing a renderer to send a notification containing an id field, the browser allows the renderer to mimic a command response.
Potential Attack Scenario
- A user opens DevTools on a page containing a compromised renderer (Session B) and a victim cross-origin iframe (Session A).
- The compromised renderer predicts the next sequential
messageId(e.g.,100) used by the sharedDevToolsCDPConnection. - When the developer performs an action targeting Session A (e.g., viewing source code), the frontend sends a command with
id: 100andsessionId: "SessionA". - The compromised renderer B immediately sends a spoofed notification via Mojo:
{"id": 100, "sessionId": "SessionB", "result": {"scriptSource": "/* MALICIOUS CODE */"}}. - The browser validates that
sessionIdis "SessionB" and forwards the message. - The frontend receives the message, matches
id: 100, and resolves the victim Session A's request with the attacker's data, as it fails to verify that the session IDs match.
Impact
- Cross-Origin Content Spoofing: An attacker can replace the source code, network responses, or console data displayed for a victim origin in the DevTools UI.
- Feature Redirection: Malicious responses for commands like
Target.getTargetInfocould potentially redirect privileged DevTools features (e.g., Lighthouse, Recorder) to attacker-controlled targets.
Suggested Remediation
- Frontend: Update
DevToolsCDPConnection.onMessageto verify that thesessionIdin the incoming message matches thesessionIdstored in the callback metadata before resolving. - Browser: In
DevToolsSession::DispatchProtocolNotification, reject or strip any message body that contains anidfield, as notifications should not possess a call ID.
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 frontend did not verify that the session ID in an incoming message matched the session ID stored with the callback, and the browser did not reject renderer notifications containing an ID field.
Impact
An attacker could spoof cross-origin content in the DevTools UI and potentially redirect privileged DevTools features to attacker-controlled targets.
What the attacker needed
Compromised renderer process; DevTools open on a page with a cross-origin iframe; attacker can predict the next message ID
The fix
The frontend should verify that the session ID in an incoming message matches the callback's session ID, and the browser should reject or strip renderer notifications that contain an ID field.
How it was found
- Open DevTools on a page that contains a compromised renderer and a victim cross-origin iframe.
- The compromised renderer predicts the next sequential message ID used by the shared connection.
- The developer performs an action targeting the victim session, causing the frontend to send a command with that ID.
- The compromised renderer sends a spoofed notification with the same ID but its own session ID.
- The browser validates the session ID and forwards the message.
- The frontend matches the ID and resolves the victim session's request with the attacker's data.
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.
Chrome DevTools talks to the browser using numbered messages. The frontend assumed a reply with a certain number belonged to the request with that number, without checking which page or frame it came from. A malicious page could guess the next number and send a fake reply, so the developer would see attacker-controlled information in DevTools.
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.