electron@44.7.1

Build cross platform desktop apps with JavaScript, HTML, and CSS

  • latest version

    45.0.0

  • latest non vulnerable version

  • first published

    14 years ago

  • latest version published

    4 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the electron package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • C
    Improper Check for Certificate Revocation

    electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS.

    Affected versions of this package are vulnerable to Improper Check for Certificate Revocation via the Node.js TLS stack in the main and utility processes, which lacked an equivalent of Chromium's compiled-in SubjectPublicKeyInfo (SPKI) blocklist. A certificate chain containing a blocked SPKI hash that would be rejected in a renderer process is accepted by Node's tls, https, and fetch APIs, allowing a MitM attacker to present a chain built on a revoked or distrusted public key and have it verified successfully.

    How to fix Improper Check for Certificate Revocation?

    Upgrade electron to version 42.11.16, 43.8.1, 44.9.1, 45.0.0-beta.6 or higher.

    <42.11.16>=43.0.0-alpha.1 <43.8.1>=44.0.0-alpha.1 <44.9.1>=45.0.0-alpha.1 <45.0.0-beta.6
    • H
    Origin Validation Error

    electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS.

    Affected versions of this package are vulnerable to Origin Validation Error via the OpenURLFromTab navigation path, when a sandboxed iframe with allow-popups but without allow-popups-to-escape-sandbox opens a new window. The initiating frame's sandbox restrictions are not resolved on this code path because params.frame_tree_node_id is unset for non-CURRENT_TAB dispositions, causing the sandbox check to never run. As a result, the newly created window receives full origin authority instead of inheriting the opener frame's sandbox flags, allowing a sandboxed frame to escape its confinement.

    Note: This is only exploitable if the app embeds untrusted content in iframes sandboxed with allow-scripts allow-popups.

    How to fix Origin Validation Error?

    Upgrade electron to version 41.10.4, 43.0.0, 42.5.2, 45.0.0-alpha.10 or higher.

    <41.10.4>=43.0.0-alpha.1 <43.0.0>=42.0.0-alpha.1 <42.5.2>=44.0.0-alpha.1 <45.0.0-alpha.10