Electron: HID and USB permission checks can be attributed to the wrong origin
Impact
For hid and usb permission checks initiated from an iframe, session.setPermissionCheckHandler was provided with the top-level frame's origin and details rather than those of the requesting frame. Applications that grant these permissions based on origin may inadvertently allow an embedded frame access intended for the top-level page.
Applications are only affected if they use setPermissionCheckHandler with origin-based logic for hid or usb and embed cross-origin iframes with allow="hid" or allow="usb". Applications that do not delegate these features to untrusted iframes are not affected.
Workarounds
Do not add allow="hid" or allow="usb" to untrusted iframes, or implement your decision logic in the select-hid-device / select-usb-device handler using details.frame.
Fixed Versions
45.0.0-alpha.544.3.043.7.042.11.3
For more information
If you have any questions or comments about this advisory, email security@electronjs.org.
What to do
Upgrade to 45.0.0-alpha.5, 44.3.0, 43.7.0, 42.11.3, or later.
If upgrading is not immediately possible, apply the workarounds:
- Do not add
allow="hid"orallow="usb"to untrusted iframes. - Base permission decisions in your
select-hid-device/select-usb-devicehandler ondetails.frame.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | electron | >= 45.0.0-alpha.1, < 45.0.0-alpha.5, >= 44.0.0-alpha.1, < 44.3.0, >= 43.0.0-alpha.1, < 43.7.0, < 42.11.3 | 45.0.0-alpha.5, 44.3.0, 43.7.0, 42.11.3 |
References
- https://github.com/electron/electron/security/advisories/GHSA-fw47-9c62-h3vw
- https://github.com/electron/electron/pull/53656
- https://github.com/electron/electron/pull/53679
- https://github.com/electron/electron/pull/53688
- https://github.com/electron/electron/pull/53689
- https://github.com/electron/electron/pull/53736
- https://github.com/electron/electron/commit/22de0a3a06cfd3174fc6c59c3810ab5e1c91bf1a
- https://github.com/electron/electron/commit/36042b2e1b1c60c67b05ba0e95d1a34f608b9742
- https://github.com/electron/electron/commit/56cc43eb677d46b86b0d3f49b5fba71404ab1ff0
- https://github.com/electron/electron/commit/922073f8601479e93071f56f0745041291b206fd
- https://github.com/electron/electron/commit/c965cee73284c4b230a81d51a7db6115e55da8c0
- https://github.com/electron/electron
- https://github.com/electron/electron/releases/tag/v42.11.3
- https://github.com/electron/electron/releases/tag/v43.7.0
- https://github.com/electron/electron/releases/tag/v44.3.0
- https://github.com/electron/electron/releases/tag/v45.0.0-alpha.5
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N- Weakness (CWE)
CWE-346- Platform
- npm
- Package
electron- Disclosed
- 21.10.2026
- Updated
- 21.10.2026 20:25
Sources and licenses · Edited or translated by DockRay; source rights and applicable licenses are retained.
OSV / GitHub Advisory Database - GHSA-fw47-9c62-h3vw - CC BY 4.0
Vulnerability history: electron
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 72
- First → latest
- 10.2017 10.2026
- Without a fix
- 0
- Exploited in attacks
- 3
Severity breakdown
- Critical 3
- High 26
- Medium 33
- Low 10
Disclosures per year
- 2017: 1
- 2018: 5
- 2019: 0
- 2020: 6
- 2021: 2
- 2022: 7
- 2023: 6
- 2024: 0
- 2025: 3
- 2026: 42
-
Electron: HID and USB permission checks can be attributed to the wrong origin this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.