Arbitrary Code Execution Affecting org.webjars.npm:electron package, versions [,32.0.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGWEBJARSNPM-483084
  • published11 Nov 2019
  • disclosed31 Jan 2019
  • creditPalmerAL

Introduced: 31 Jan 2019

CVE NOT AVAILABLE CWE-1188  (opens in a new tab)

How to fix?

Upgrade org.webjars.npm:electron to version 32.0.1 or higher.

If for some reason you are unable to upgrade your Electron version, you can mitigate this issue by disabling all child web contents: view.webContents.on('-add-new-contents', e => e.preventDefault());

Overview

org.webjars.npm: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 Arbitrary Code Execution. Opening a BrowserView with sandbox: true or nativeWindowOpen: true and nodeIntegration: false results in a webContents where window.open() can be called and the newly opened child will have nodeIntegration enabled.

CVSS Scores

version 3.1