Unauthorized File Access Affecting electron/electron package, versions [7.0.0,7.2.4)[8.0.0,8.2.4)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.15% (52nd percentile)

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-UNMANAGED-ELECTRONELECTRON-2370574
  • published26 Jan 2022
  • disclosed7 Jul 2020
  • creditUnknown

Introduced: 7 Jul 2020

CVE-2020-4075  (opens in a new tab)
CWE-552  (opens in a new tab)

How to fix?

Upgrade electron/electron to version 7.2.4, 8.2.4 or higher.

Overview

Affected versions of this package are vulnerable to Unauthorized File Access. In Electron before versions 7.2.4, 8.2.4, and 9.0.0-beta21, arbitrary local file read is possible by defining unsafe window options on a child window opened via window.open. As a workaround, ensure you are calling event.preventDefault() on all new-window events where the url or options is not something you expect. This is fixed in versions 9.0.0-beta.21, 8.2.4 and 7.2.4.

CVSS Scores

version 3.1