Skip to content
vetkitChecksChangelogDocumentation

vetkit.js.electron.context-isolation-disabled

An Electron window disables context isolation. Web content can then tamper with the preload script's globals and reach privileged APIs.

Last updated:

Suite: Security

javascript, typescript

An Electron window disables context isolation. Web content can then tamper with the preload script's globals and reach privileged APIs.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Keep contextIsolation: true (the default since Electron 12) and use contextBridge.exposeInMainWorld.

References

Source: packages/engine/rules/sast/javascript.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.