GHSA-fw47-9c62-h3vw CVE-2026-113800
Electron: HID and USB permission checks can be attributed to the wrong origin
- Severity
- 5.4 / 10
- Medium · CVSS 3.1
- Exploit chance (EPSS)
- 0.24%
- Chance of exploitation in the next 30 days. Higher than 15.32% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-346 Origin Validation Error
- Fix
45.0.0-alpha.5- Upgrade electron to this version or later
Description
Impact
For hid and usb permission checks made from an iframe, session.setPermissionCheckHandler was given the top-level frame's origin and details instead of the requesting frame's. Apps that allow these permissions based on origin could grant an embedded frame access intended for the top-level page.
You're only affected if you use setPermissionCheckHandler with origin-based logic for hid or usb and embed cross-origin iframes with allow="hid" or allow="usb". Apps that don't delegate those features to untrusted iframes are not affected.
Workarounds
Don't add allow="hid" / allow="usb" to untrusted iframes, or make the decision in your 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 us at security@electronjs.org
Affected versions
npm
| Package | Vulnerable | Fixed in |
|---|---|---|
| electron | >= 45.0.0-alpha.1, < 45.0.0-alpha.5 |
45.0.0-alpha.5 |
| electron | >= 44.0.0-alpha.1, < 44.3.0 |
44.3.0 |
| electron | >= 43.0.0-alpha.1, < 43.7.0 |
43.7.0 |
| electron | < 42.11.3 |
42.11.3 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
electron npm → 45.0.0-alpha.5
- npm
npm install electron@45.0.0-alpha.5- yarn
yarn add electron@45.0.0-alpha.5- pnpm
pnpm add electron@45.0.0-alpha.5
Severity breakdown
CVSS 3.1 5.4
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Weakness
CWE-346: Origin Validation Error
The product does not properly verify that the source of data or communication is valid.
References
Packages
Other links
- github.com/electron/electron/security/advisories/GHSA-fw47-9c62-h3vw
- github.com/electron/electron/pull/53656
- github.com/electron/electron/pull/53679
- github.com/electron/electron/pull/53688
- github.com/electron/electron/pull/53689
- github.com/electron/electron/pull/53736
- github.com/electron/electron/commit/22de0a3a06cfd3174fc6c59c3810ab5e1c91bf1a
- github.com/electron/electron/commit/36042b2e1b1c60c67b05ba0e95d1a34f608b9742
- github.com/electron/electron/commit/56cc43eb677d46b86b0d3f49b5fba71404ab1ff0
- github.com/electron/electron/commit/922073f8601479e93071f56f0745041291b206fd
- github.com/electron/electron/commit/c965cee73284c4b230a81d51a7db6115e55da8c0
- github.com/electron/electron/releases/tag/v42.11.3
- github.com/electron/electron/releases/tag/v43.7.0
- github.com/electron/electron/releases/tag/v44.3.0
- github.com/electron/electron/releases/tag/v45.0.0-alpha.5
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-qqvq-6xgj-jw8g Electron affected by libvpx's heap buffer overflow in vp8 encoding | High Known exploited | Also affects electron |
| GHSA-j7hp-h8jx-5ppr libwebp: OOB write in BuildHuffmanTable | High Known exploited | Also affects electron |
| GHSA-995f-9x5r-2rcj Heap buffer overflow in GPU | Critical Known exploited | Also affects electron |
| GHSA-jr5w-w6x2-84p9 Electron: Mitigation for compromised eMudhra intermediate certificates | High | Also affects electron |
| GHSA-h3v5-h239-pg29 Electron: Off-screen rendering on macOS trusts GPU-supplied frame geometry | Low | Also affects electron |
| GHSA-3qxv-5xgr-q7w9 Electron: Frame subscription trusts GPU-supplied frame geometry | Low | Also affects electron |
| GHSA-997q-gvvc-jwmx Electron: openExternal permission requests can be attributed to the wrong origin | Medium | Also affects electron |
| GHSA-x562-297c-g43g Electron: Pointer lock permission requests can be attributed to the wrong frame | Medium | Also affects electron |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor