Skip to content


Lorenzo Stella edited this page Apr 8, 2019 · 2 revisions

LIMIT_NAVIGATION_JS_CHECK - Detects if on() for 'will-navigate' and 'new-window' events is used

Creation of a new window or the navigation to a specific origin can be inspected and validated using callbacks for the new-window and will-navigate events.

Electron applications can limit the navigation flows by implementing a similar code snippet:

win.webContents.on('will-navigate', (event, newURL) => {
  if (win.webContents.getURL() !== '' ) {


This setting can be used to limit the exploitability of certain issues. Not enforcing navigation limits leaves the Electron application under full control to remote origins in case of accidental navigation.


Check every callback of the will-navigate and the new-windows events. These callbacks should be reviewed thoroughly to exclude potential flaws in the origin's validation mechanism.


You can’t perform that action at this time.