Incorrect reference resolution in Accessibility (CVE-2026-87562)
The macOS accessibility wrapper for Chromium implements equality and hashing using renderer-supplied node IDs that are only unique within a single frame, so elements from different origins can collide. An attacker could cause UI spoofing or action redirection in assistive tools, and detaching nodes changes their hash, leaking memory in the browser process.
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 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: BrowserAccessibilityCocoa incorrectly implements isEqual: and hash using non-unique renderer-supplied IDs. This leads to hash instability when objects are detached and potential cross-origin element collisions in macOS accessibility collections.
Affected files:
ui/accessibility/platform/browser_accessibility_cocoa.mmui/accessibility/platform/ax_platform_node_cocoa.mm
Estimated timestamp from git blame: 2010-07-07
Description
The implementation of -[BrowserAccessibilityCocoa isEqual:] and -[BrowserAccessibilityCocoa hash] in ui/accessibility/platform/browser_accessibility_cocoa.mm violates the fundamental contract for NSObject identity. This results in two primary issues: hash instability during object lifecycle transitions and cross-origin element collisions in the browser process.
1. Hash Mutation After Detach (Memory Leak)
When an accessibility node is removed or a navigation occurs, the native wrapper is detached. The detachAndNotifyDestroyed: method nulls the internal pointers used to identify the node.
In ui/accessibility/platform/browser_accessibility_cocoa.mm:
- (NSUInteger)hash {
if (![self instanceActive])
return [super hash];
return _owner->GetId();
}
Once the object is detached, [self instanceActive] returns NO, causing the hash to transition from the node's ID to a pointer-based hash ([super hash]). If this object is currently stored as a key in an NSDictionary or within an NSSet used by AppKit or assistive tools (like VoiceOver), the collection will be unable to locate the object to remove it after the hash changes. This leads to a persistent memory leak in the browser process that can be triggered by a malicious or malfunctioning renderer.
2. Cross-Tree ID Collisions (Information Confusion)
The current implementation uses _owner->GetId(), which returns an AXNodeID. These IDs are only unique within a single accessibility tree (frame). Consequently, nodes in different frames (potentially from different origins) often share the same ID (e.g., multiple frames having a node with id=1).
Because isEqual: is implemented solely by comparing these hashes:
- (BOOL)isEqual:(id)object {
if (![object isKindOfClass:[BrowserAccessibilityCocoa class]])
return NO;
return ([self hash] == [object hash]);
}
Two distinct BrowserAccessibilityCocoa wrappers representing elements in different origins will be considered equal. If a system collection caches these objects, an element from a victim origin could be erroneously substituted for one from an attacker-controlled origin.
Potential Attack Steps
- An attacker-controlled renderer creates an accessibility tree with predictable node IDs (e.g., beginning at 1).
- The attacker embeds a cross-origin iframe (the victim) which also contains nodes starting with the same IDs.
- The macOS accessibility architecture (VoiceOver) queries and caches elements from both frames in a hash-based collection.
- Due to the collision in
isEqual:andhash, the collection may return the attacker's element when the victim's element is requested, leading to UI spoofing or action redirection. - The attacker navigates the frame, triggering a detach. The hash of the cached objects changes, causing them to become 'stuck' in the system's accessibility cache, leaking memory in the browser process.
Recommendation
BrowserAccessibilityCocoa should be modified to use GetUniqueId() instead of GetId(). The AXPlatformNodeId returned by GetUniqueId() is guaranteed to be unique within the browser process and remains stable throughout the wrapper's lifetime, even after the backing BrowserAccessibility object is detached.
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 equality and hash methods use a node ID that is only unique within one frame instead of a process-wide unique ID, and the hash changes when the object is detached.
Impact
An attacker could cause UI spoofing or action redirection in assistive tools and leak memory in the browser process, though the report notes these are potential issues and results may include wrong deductions.
What the attacker needed
MacOS with VoiceOver or similar assistive tool; attacker-controlled renderer; victim origin embedded in an iframe
The fix
The wrapper should use GetUniqueId() instead of GetId() so the identifier is unique across the browser process and stable after detach.
How it was found
- An attacker-controlled renderer creates an accessibility tree with predictable node IDs.
- The attacker embeds a cross-origin iframe whose nodes start with the same IDs.
- VoiceOver queries and caches elements from both frames in a hash-based collection.
- Due to the collision, the collection may return the attacker's element when the victim's is requested.
- The attacker navigates the frame, triggering a detach and changing the hash of cached objects.
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.
Accessibility tools like VoiceOver use a list of elements to help users navigate a page. This report found that the browser's internal labels for those elements can be the same across different websites, so the tool might mix them up. That could let a malicious site trick the tool into showing or acting on the wrong element, and it can also cause a memory leak.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.