GHSA-x562-297c-g43g: Medium severity npm/electron vulnerability

Published Oct 22, 2026
·
Updated

Impact For pointerLock permission requests made from some cross-origin iframes, session.setPermissionRequestHandler() was given the top-level frame's requestingUrl and isMainFrame instead of the requesting frame's. Apps that grant pointer lock based on the requesting origin could grant it to embedded content under the top-level page's identity.

Apps are only affected if they embed untrusted content in iframes and decide pointerLock requests by origin in setPermissionRequestHandler. Apps that do not embed untrusted content, or that deny pointerLock for it, are not affected.

Workarounds Deny the pointerLock permission for web contents that embed untrusted frames.

Fixed Versions 45.0.0-alpha.13 44.5.0 43.7.6 42.11.9

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.9
42.11.9
npm/electron>=43.0.0-alpha.1<43.7.6
43.7.6
npm/electron>=44.0.0-alpha.1<44.5.0
44.5.0
npm/electron>=45.0.0-alpha.1<45.0.0-alpha.13
45.0.0-alpha.13

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.9
  2. Upgrade

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

    Fixed in 43.7.6
  3. Upgrade

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

    Fixed in 44.5.0
  4. Upgrade

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

    Fixed in 45.0.0-alpha.13
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 42.11.9
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 43.7.6
  7. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 44.5.0
  8. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 45.0.0-alpha.13
  9. Configuration

    Deny the pointerLock permission for web contents that embed untrusted frames.

    pointerLock permission = deny

Event History

Oct 22, 2026
Advisory Published
via GitHub·04:47 PM
Data Sourced
via GitHub·04:47 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which applications are affected by this issue?

Applications are affected only if they embed untrusted content in cross-origin iframes and make pointerLock decisions by origin in session.setPermissionRequestHandler(). Applications that do not embed untrusted content, or that deny pointerLock for that content, are not affected.

2

What does an attacker need to exploit this behavior?

An attacker needs their content to be embedded in a relevant cross-origin iframe and needs the application to grant pointerLock based on the requesting origin supplied to the permission handler. The incorrect frame identity can cause the embedded content to be evaluated as though it were the top-level page.

3

What can be done if upgrading is not immediately possible?

Deny the pointerLock permission for web contents that embed untrusted frames. This prevents untrusted embedded content from receiving pointer lock through the affected permission-request handling path.

4

Which Electron releases contain fixes?

Fixed releases are 45.0.0-alpha.13, 44.5.0, 43.7.6, and 42.11.9.

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