GHSA-fw47-9c62-h3vw: Medium severity npm/electron vulnerability

Published Oct 21, 2026
·
Updated

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.5 44.3.0 43.7.0 42.11.3

For more information If you have any questions or comments about this advisory, email us at security@electronjs.org

Affected Software

4 affected componentsFixes available
npm/electron<42.11.3
42.11.3
npm/electron>=43.0.0-alpha.1<43.7.0
43.7.0
npm/electron>=44.0.0-alpha.1<44.3.0
44.3.0
npm/electron>=45.0.0-alpha.1<45.0.0-alpha.5
45.0.0-alpha.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/electron to a version that resolves this vulnerability.

    Fixed in 42.11.3
  2. Upgrade

    Upgrade npm/electron to a version that resolves this vulnerability.

    Fixed in 43.7.0
  3. Upgrade

    Upgrade npm/electron to a version that resolves this vulnerability.

    Fixed in 44.3.0
  4. Upgrade

    Upgrade npm/electron to a version that resolves this vulnerability.

    Fixed in 45.0.0-alpha.5
  5. Upgrade

    Upgrade Electron to a version that resolves this vulnerability.

    Fixed in 42.11.3
  6. Upgrade

    Upgrade Electron to a version that resolves this vulnerability.

    Fixed in 43.7.0
  7. Upgrade

    Upgrade Electron to a version that resolves this vulnerability.

    Fixed in 44.3.0
  8. Upgrade

    Upgrade Electron to a version that resolves this vulnerability.

    Fixed in 45.0.0-alpha.5
  9. Configuration

    Do not add allow="hid" or allow="usb" to untrusted iframes; for hid and usb permission checks, make the decision in the select-hid-device or select-usb-device handler using details.frame.

    Electron iframe permissions allow="hid" / allow="usb" = do not delegate to untrusted iframes

Event History

Oct 21, 2026
Advisory Published
via GitHub·05:21 PM
Data Sourced
via GitHub·05:21 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which applications are actually exposed?

Applications are affected only if they use session.setPermissionCheckHandler with origin-based decisions for HID or USB and embed cross-origin iframes granted allow="hid" or allow="usb". Applications that do not delegate these features to untrusted iframes are not affected.

2

What access could an embedded frame gain?

A cross-origin iframe may be granted HID or USB access that the application intended to allow only for the top-level page, because the permission-check handler receives the top-level frame's origin and details rather than the requesting frame's.

3

What can be done before upgrading?

Do not add allow="hid" or allow="usb" to untrusted iframes. Alternatively, make HID and USB authorization decisions in the select-hid-device or select-usb-device handler using details.frame.

4

Which versions contain the fix?

The issue is fixed in 45.0.0-alpha.5, 44.3.0, 43.7.0, and 42.11.3.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203