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

Incorrect authorization in Device (CVE-2026-79003)

WebHID security checks only inspect top-level collections, so a crafted HID device can hide a sensitive collection such as a keyboard inside a benign gamepad collection. An untrusted website could then read the sensitive input reports, for example keystrokes.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Flapjack, 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 WebHID implementation allows a crafted HID device to bypass usage-based protections and security blocklists. By nesting a sensitive collection (like Keyboard or FIDO) inside a benign Top-Level Collection, the device's protected reports can be exposed to untrusted web content.

Affected files:

  • services/device/public/cpp/hid/hid_blocklist.cc
  • services/device/hid/hid_connection.cc
  • content/browser/hid/hid_service.cc
  • third_party/blink/renderer/modules/hid/hid_device.cc
  • services/device/public/cpp/hid/hid_report_utils.cc
  • content/browser/service_worker/service_worker_hid_delegate_observer.cc

Estimated timestamp from git blame: Unknown (Google3 checkout)

Summary

Chromium's WebHID implementation protects sensitive HID reports (e.g., Keyboards, FIDO security keys) from being accessed by untrusted websites. These protections rely on evaluating the usage pages of the device's Top-Level Collections (TLCs).

However, a logic flaw exists where multiple security checks fail to recursively inspect nested child collections. Because the HID descriptor parser propagates report items to ancestor collections, a crafted HID device can define a sensitive usage within a nested collection beneath a benign TLC (such as a Gamepad). This causes the sensitive reports to be incorrectly evaluated against the benign TLC's usage, bypassing blocklists and runtime protections, and allowing an untrusted website to read sensitive input (e.g., keystrokes).

Potential Attack Steps

Note: These are suggested steps based on source code analysis, as our tooling agent cannot execute a working proof of concept.

  1. Device Crafting: An attacker connects a crafted physical or emulated HID device. The device's report descriptor defines a benign Top-Level Collection (TLC), such as Generic Desktop / Gamepad (Usage Page 0x01, Usage 0x05).
  2. Nested Sensitive Usage: Inside this TLC, the descriptor defines a nested child collection with a protected usage, such as Keyboard (Usage Page 0x07) or FIDO (Usage Page 0xF1D0).
  3. Report Definition: An Input Report (e.g., Report ID 1) is defined within the nested child collection.
  4. Descriptor Parsing: During device initialization, device::HidCollection::AddReportItem parses the descriptor and propagates the Input Report item up the hierarchy to the parent benign TLC.
  5. Blocklist Bypass: The browser evaluates the HID blocklist via HidBlocklist::CheckBlocklistEntry. This function only iterates over the collections array (which contains only TLCs). Since the TLC usage is Gamepad, it does not match FIDO or Keyboard blocklist rules, and the function fails to recurse into the child collections. Report ID 1 is not marked as protected.
  6. WebHID Filtering Bypass: When an untrusted website requests the device via navigator.hid.requestDevice(), HidService::RemoveProtectedReports and Blink's HIDDevice::UpdateDeviceInfo filter the exposed device information. Both functions evaluate only the TLC's usage, leaving the sensitive reports exposed in the JavaScript HIDDevice object.
  7. Runtime Protection Bypass: The website calls device.open() and listens for inputreport events. When the device sends a sensitive payload on Report ID 1, HidConnection::IsReportProtected validates the report. It uses FindCollectionWithReport, which locates the report in the benign TLC (due to step 4). The runtime check evaluates the benign Gamepad usage and allows the report through.
  8. Data Exfiltration: The untrusted website successfully receives the sensitive inputreport event.

Suggested Fix

To address this bypass, the security filters must properly account for nested collections:

  • Recursive Blocklisting: CheckBlocklistEntry in services/device/public/cpp/hid/hid_blocklist.cc should recursively evaluate collection->children when checking usage pages, ensuring reports nested under sensitive usages are added to the protected IDs lists.
  • Precise Report Mapping: FindCollectionWithReport in services/device/public/cpp/hid/hid_report_utils.cc currently returns the first matching collection, which is often the TLC due to propagation. It should be updated to return the innermost collection that defines the report, or the runtime checks in HidConnection::IsReportProtected should recursively verify the usage of all nested collections associated with the report.
  • UI/Renderer Filtering: HidService::RemoveProtectedReports and HIDDevice::UpdateDeviceInfo should recursively evaluate nested collections to ensure protected nested collections are removed from the WebHID API surface.

Evaluated with Chrome root at commit: 2155cb00003ec35716a76ed3246eae995f87b7ff


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 blocklist, report-filtering and runtime protection checks only evaluate top-level collection usages and never recurse into nested child collections, while the parser propagates report items up to the parent collection.

What the attacker needed

Attacker supplies a crafted or emulated HID device; victim connects the device; victim visits a malicious website; website requests HID device access

The fix

The security filters should be changed to recursively evaluate nested child collections when blocklisting, mapping reports and filtering the WebHID API surface.

How it was found

  1. Craft a HID device whose descriptor defines a benign top-level collection such as a gamepad.
  2. Nest a child collection with a protected usage, such as keyboard or FIDO, inside it.
  3. Define an input report within the nested child collection.
  4. During initialisation the parser propagates the report item up to the benign parent collection.
  5. The blocklist check only looks at top-level collections, so the report is not marked protected.
  6. A website requests the device, opens it and receives the sensitive input report events.

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.

WebHID lets websites talk to USB input devices like gamepads and keyboards. Chromium tries to block websites from reading keyboards and security keys, but it only checks the device's outer description, not the parts nested inside it. A malicious device can therefore disguise a keyboard as a gamepad and let a website read what is typed.

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.