electron@45.0.0-alpha.9

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

  • latest version

    44.5.1

  • latest non vulnerable version

  • first published

    14 years ago

  • latest version published

    5 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
    • 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 43.0.0, 42.5.2, 41.10.4, 45.0.0-alpha.10 or higher.

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