Skip to content
Access control Advisory Advanced CVE-2026-106403

Incorrect authorization in Accessibility (CVE-2026-106403)

The Chrome automation extension generated accessibility action request IDs with Math.random(), a predictable generator, and stored callbacks in one global map without checking which tree a result came from. A compromised renderer could observe IDs over Mojo, predict future ones, and forge accessibility events to hijack callbacks meant for other trees such as the desktop or another tab.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 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 Chrome automation extension uses Math.random() to generate request IDs for accessibility actions. A compromised renderer can observe these IDs via Mojo, predict future IDs, and forge accessibility events to hijack action callbacks intended for other origins or the desktop tree.

Affected files:

  • extensions/renderer/resources/automation/automation_node.js

Estimated timestamp from git blame: Unknown (Google3 checkout)

Summary

A potential vulnerability in the Chrome automation API allows a compromised renderer to perform cross-tree callback hijacking. The automation extension uses Math.random() to generate requestID values for tracking the results of accessibility actions. These IDs are sent to renderers via Mojo IPC. Because Math.random() is mathematically predictable, a compromised renderer can recover the PRNG state and predict future request IDs. Combined with a globally shared callback map that lacks origin verification, an attacker can intercept and resolve callbacks intended for other accessibility trees (e.g., the desktop tree or other tabs).

Technical Details

  1. Insecure ID Generation: In extensions/renderer/resources/automation/automation_node.js, the addActionResultCallback function generates request IDs using Math.random():
JavaScript
// Line 1970
requestID = Math.floor(Math.random() * INT32_MAX);

V8's Math.random() implementation is a non-cryptographic PRNG. Its internal state can be reconstructed after observing a small number of consecutive outputs.

  1. Information Leak via Mojo: Request IDs are passed to renderer processes through the RenderAccessibility Mojo interface (third_party/blink/public/mojom/render_accessibility.mojom), for example, via the request_id parameter in HitTest or within AXActionData for PerformAction. A compromised renderer can observe these values and recover the extension V8 context's PRNG state.

  2. Cross-Tree Hijacking: The actionRequestIDToCallback map in automation_node.js (line 1760) is shared globally across all accessibility tree instances. When a forged accessibility event arrives with a predicted actionRequestID, the onActionResult handler (line 2002) performs a lookup in this global map using only the requestID as the key. There is no check to ensure that the event originated from the same tree that initiated the request.

Potential Attack Scenario

(Note: These are suggested steps; our tooling has not executed a live proof of concept.)

  1. An attacker compromises a renderer process hosting their website.
  2. The user has an accessibility extension active (e.g., ChromeVox on ChromeOS).
  3. The extension performs normal actions on the compromised renderer's accessibility tree, exposing several request_id values via Mojo.
  4. The attacker uses these values to reconstruct the extension's V8 Math.random() state and predicts the next sequence of requestIDs.
  5. The extension performs a sensitive action (e.g., a hit test) on a privileged tree (like the desktop or another tab).
  6. The attacker forges an ax.mojom.AXUpdatesAndEvents Mojo message containing an ax.mojom.AXEvent with the predicted action_request_id and a targetID from their own controlled tree.
  7. The event is routed through the browser to the extension, which looks up the predicted ID in the global actionRequestIDToCallback map.
  8. The extension invokes the victim callback with the attacker's spoofed node, allowing the attacker to spoof UI content or intercept screen reader interactions.

Recommendation

Request IDs should be generated using a cryptographically secure PRNG. Replace Math.random() with crypto.getRandomValues() in automation_node.js:

JavaScript
const buf = new Uint32Array(1);
crypto.getRandomValues(buf);
requestID = buf[0] & 0x7FFFFFFF;

Evaluated with Chrome root at commit: 65b3256311f3ab6fb9870eaa522de7e6dd2663bb


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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 combination of a non-cryptographic PRNG for request IDs and a single global callback map keyed only by request ID, with no check that the result came from the tree that made the request.

Impact

An attacker who already controls a renderer could spoof UI content or intercept screen reader interactions for other trees, though the scenario is described as suggested and not executed as a live proof of concept.

What the attacker needed

Attacker controls a renderer process; an accessibility extension is active; extension acts on the attacker's tree first

The fix

Request IDs should be generated with a cryptographically secure random generator such as crypto.getRandomValues() instead of Math.random().

How it was found

  1. Compromise a renderer process hosting the attacker's website.
  2. Have an accessibility extension active while it performs normal actions on the compromised renderer's tree, exposing request IDs via Mojo.
  3. Reconstruct the extension's Math.random() state from those values and predict the next request IDs.
  4. Wait for the extension to perform a sensitive action on a privileged tree such as the desktop or another tab.
  5. Forge an accessibility update message carrying the predicted request ID and a node from the attacker's own tree.
  6. The extension looks up the predicted ID in the global map and calls the victim callback with the attacker's spoofed node.

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.

Some code needs random-looking numbers, for example to label a request so the reply can be matched to it. Math.random() only looks random: if you watch a few of its outputs you can work out what it will produce next. Here the labels were also stored in one shared list with no note of which page asked, so a malicious page could guess a label and answer someone else's request.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.